~linuxgoose/linguistics-robin

linguistics-robin/.github/workflows/publish.yml -rw-r--r-- 678 bytes
6ef2ba53Jordan Robinson Refactor GitHub Actions workflow for publishing a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Publish

on:
  release:
    types: [published]
  workflow_dispatch:

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          ref: 'main'
      - name: Set up Python
        uses: actions/setup-python@v5
      - name: Install Flit
        run: pip install flit
      - name: Install Dependencies
        run: flit install --symlink
      - name: Publish
        env:
          # FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }}
          # FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
          FLIT_USERNAME: __token__
          FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
        run: flit publish