• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: release-deploy
2
3on:
4  release:
5    types: [ published ]
6
7jobs:
8
9  deploy:
10    runs-on: ubuntu-latest
11    strategy:
12      fail-fast: true
13      matrix:
14        python-version: [ '3.10' ]
15
16    steps:
17    - uses: actions/checkout@v3
18
19    - name: Set up Python ${{ matrix.python-version }}
20      uses: actions/setup-python@v4
21      with:
22        python-version: ${{ matrix.python-version }}
23
24    - name: Build package
25      run: |
26        python -m pip install --upgrade pip
27        python -m pip install build
28        python -m build
29
30    - name: Publish package to PyPI
31      uses: pypa/gh-action-pypi-publish@release/v1
32      with:
33        user: __token__
34        password: ${{ secrets.PYPI_TOKEN }}
35