Skip to content

Commit a1de7f9

Browse files
committed
add on-release-publish.yml workflow
1 parent a0dbd7b commit a1de7f9

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/create-release.yml renamed to .github/workflows/on-create-tag.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ on:
1010

1111
jobs:
1212
build:
13+
if: ${{ false }}
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Checkout
1617
uses: actions/checkout@v4
1718
with:
18-
ref: ${{ github.ref_name}}
19+
ref: ${{ github.ref_name }}
1920
- name: PyPI Publish
2021
run: |
2122
chmod +x ./scripts/pypi-publish.sh
22-
./scripts/pypi-publish.sh '${{secrets.PYPI_UPLOAD}}'
23+
./scripts/pypi-publish.sh '${{ secrets.PYPI_UPLOAD }}'
2324
- name: Create Release File
2425
run: echo ${{ github.sha }} > Release.txt
2526
- name: Release
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PyPI Publish on Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.ref_name }}
18+
- name: PyPI Publish
19+
run: |
20+
chmod +x ./scripts/pypi-publish.sh
21+
./scripts/pypi-publish.sh '${{ secrets.PYPI_UPLOAD }}'

0 commit comments

Comments
 (0)