~linuxgoose/linguistics-robin

ref: 0fded38e2d336f86d65b0b974f7f23880891e767 linguistics-robin/.github/workflows/publish.yml -rw-r--r-- 676 bytes
0fded38elinuxgoose Update .github/workflows/publish.yml 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
29
30
31
32
33
name: Publish

on:
  release:
    types: [published]
  workflow_dispatch:

jobs:
  publish:
    runs-on: ubuntu-latest
    container:
      image: cimg/python:3.12
    steps:
      # Checkout the repository
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          ref: 'main'

      # Install Flit
      - name: Install Flit
        run: pip install --upgrade pip flit

      # Install project dependencies
      - name: Install Dependencies
        run: flit install --symlink

      # Publish to PyPI
      - name: Publish
        env:
          FLIT_USERNAME: __token__
          FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
        run: flit publish