39 lines (34 loc) · 1.02 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:
# Release is only done manually
workflow_dispatch:
branches:
- main
inputs:
release_version:
description: 'Which version to release'
required: true
jobs:
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build release
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
./pw prep-release ${{ inputs.release_version }}
./pw build
git push --follow-tags origin
- name: Create github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.release_version }}
body_path: .release-changelog.md
files: wrappers.zip
- name: Publish to Pypi
run: ./pw publish --password ${{ secrets.PYPI_TOKEN }}