-
-
Notifications
You must be signed in to change notification settings - Fork 58
39 lines (32 loc) · 879 Bytes
/
deploy.yml
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
34
35
36
37
38
39
name: Deploy
run-name: Release ${{ github.ref_name }}
on:
release:
types: [ created ]
jobs:
build:
name: Build
uses: alexdlaird/pyngrok/.github/workflows/build.yml@main
secrets: inherit
deploy:
name: Deploy
needs: build
env:
FORCE_COLOR: 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Validate version
run: make validate-release VERSION=${{ steps.get_version.outputs.VERSION }}
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: make upload