-
-
Notifications
You must be signed in to change notification settings - Fork 28
58 lines (51 loc) · 1.38 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
50
51
52
53
54
55
56
57
58
name: Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/wheels.yml
release:
name: Publish package
runs-on: ubuntu-22.04
concurrency: release
if: github.repository == 'darvid/python-hyperscan'
permissions:
id-token: write
pull-requests: write
contents: write
env:
RELEASE_PR_BRANCH: create-pull-request/patch
steps:
- name: Checkout python-hyperscan
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Download artifacts
uses: actions/download-artifact@v4
if: github.event_name == 'workflow_dispatch'
- name: Prepare dist
if: github.event_name == 'workflow_dispatch'
run: |
mkdir dist
mv --backup=numbered ./wheel-*/*.whl -t dist/
mv --backup=numbered ./sdist/*.tar.gz -t dist/
ls -ahl dist/
rm -rf dist/*~
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release