forked from tekumara/fakesnow
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.03 KB
/
release.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
name: release
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Wait for checks to succeed
uses: poseidon/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
interval: 5
- uses: actions/checkout@v4
- name: Set up Python 3.9
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Cache virtualenv
id: cache-venv
uses: actions/cache@v4
with:
path: .venv
# same as used in the ci workflow for reuse across workflows
key: ${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-venv-${{ hashFiles('pyproject.toml') }}
- if: steps.cache-venv.outputs.cache-hit != 'true'
run: make install
- run: make dist
- name: Publish to pypi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: make publish