-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (56 loc) · 1.93 KB
/
release.yml
File metadata and controls
76 lines (56 loc) · 1.93 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: release
on: # triggered by push tagged commits
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: read
jobs:
################################################################################################################################
build_wheels:
uses: ./.github/workflows/wheels.yml
################################################################################################################################
build_exe:
uses: ./.github/workflows/exe.yml
################################################################################################################################
release:
needs: [build_wheels, build_exe]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out the repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: ./wheelhouse
- name: create release
uses: softprops/action-gh-release@v2
with:
files: |
./wheelhouse/**/*.whl
./wheelhouse/**/v.*.exe
./wheelhouse/**/v.*.so
body_path: .github/CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
################################################################################################################################
publish:
needs: build_wheels
runs-on: ubuntu-latest
steps:
- name: Download build artifacts from this run
uses: actions/download-artifact@v4
with:
pattern: vmol-wheels-*-${{ github.ref_name }}-${{ github.run_number }}
merge-multiple: true
path: dist
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
repository-url: https://upload.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}