-
Notifications
You must be signed in to change notification settings - Fork 318
49 lines (41 loc) · 1.23 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
40
41
42
43
44
45
46
47
48
49
# This is mostly experimental. Right now, all it does is create a GitHub release
# and then try to upload to TestPyPI. The second step seems to be consistently
# failing. :)
name: Release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: pip install build
- name: Generate final distribution
run: python -m build
- name: Upload source distribution as an action artifact
uses: actions/upload-artifact@v2
with:
name: sdist
path: dist/furo-*.tar.gz
- name: Upload wheel distribution as an action artifact
uses: actions/upload-artifact@v2
with:
name: wheel
path: dist/furo-*-py3-none-any.whl
- name: Make a GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
- name: Upload to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
verbose: true