Skip to content

Commit 7658649

Browse files
committed
ci: add release
1 parent 3f74663 commit 7658649

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- latest
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Python 3
19+
id: setup-python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.x"
23+
24+
- name: Create packages
25+
run: python package.py
26+
27+
- name: Upload packages
28+
env:
29+
GITHUB_TOKEN: ${{ github.TOKEN }}
30+
run: |
31+
gh release delete latest -y
32+
gh release create latest --latest --title 'latest' *.pyz

0 commit comments

Comments
 (0)