-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 1.11 KB
/
release.yaml
File metadata and controls
39 lines (36 loc) · 1.11 KB
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:
release:
types: [published]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Test Credentials
if: github.event.release.prerelease == true
run: |
touch $HOME/.pypirc
echo "[testpypi]" >> $HOME/.pypirc
echo " username = __token__" >> $HOME/.pypirc
echo " password = ${{ secrets.TEST_PYPI_TOKEN }}" >> $HOME/.pypirc
- name: Setup Credentials
if: github.event.release.prerelease == false
run: |
touch $HOME/.pypirc
echo "[pypi]" >> $HOME/.pypirc
echo " username = __token__" >> $HOME/.pypirc
echo " password = ${{ secrets.PYPI_TOKEN }}" >> $HOME/.pypirc
- name: Install Dependencies
run: |
make release-dependencies
- name: Test Release Distribution
if: github.event.release.prerelease == true
run: |
make release
- name: Release Distribution
if: github.event.release.prerelease == false
run: |
PYPI=pypi make release