forked from openapi-generators/openapi-python-client
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (29 loc) · 866 Bytes
/
release.yml
File metadata and controls
31 lines (29 loc) · 866 Bytes
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
name: Release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
git_push_gpgsign: false
- name: Install Knope
uses: knope-dev/action@v1
with:
version: 0.7.2
- name: Bump Version & Create GitHub Release
run: knope release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Install Poetry
run: pip install --upgrade poetry
- name: Push to PyPI
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}