-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (37 loc) · 1 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
38
39
name: release
on: workflow_dispatch
jobs:
release:
name: Release
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install -U pip wheel twine
sudo apt update
sudo apt install debootstrap python3-venv make
- name: Make dists
run:
make release
- name: Release test
run:
make release-test
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
- name: Read version
run: "echo furnace_version=$(cat furnace/VERSION) | tee --append $GITHUB_ENV"
- name: Tag
uses: negz/create-tag@v1
with:
version: "v${{ env.furnace_version }}"
token: ${{ secrets.GITHUB_TOKEN }}