Debian Codegraph @

.github/workflows/publish.yml

raw symbols SCIP
1 # This file is part of convertdate.
2 # http://github.com/fitnr/convertdate
3
4 # Licensed under the MIT license:
5 # http://opensource.org/licenses/MIT
6 # Copyright (c) 2021, fitnr <fitnr@fakeisthenewreal>
7 name: Publish
8
9 on:
10 release:
11 types: [created]
12
13 jobs:
14 deploy:
15 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/checkout@v2
18
19 - name: Set up Python
20 uses: actions/setup-python@v2
21 with:
22 python-version: "3.10"
23 cache: 'pip'
24 cache-dependency-path: setup.cfg
25
26 - name: Install build requirements
27 run: |
28 python -m pip install -U pip
29 pip install build
30
31 - run: make build
32
33 - name: Publish package
34 uses: pypa/gh-action-pypi-publish@release/v1
35 with:
36 user: __token__
37 password: ${{ secrets.PYPI_API_TOKEN }}