Skip to content

Commit 5174aec

Browse files
committed
Add release workflow
1 parent 94762b7 commit 5174aec

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on: push
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
14+
- run: |
15+
cd pkg
16+
for p in */; do
17+
cd "$p"
18+
zip -r "${p%/}.zip" "${p%/}" -x "*.DS_Store" && mv "${p%/}.zip" ../
19+
cd ..
20+
done
21+
cd ..
22+
23+
- name: Upload style to release
24+
uses: svenstaro/upload-release-action@v2
25+
if: startsWith(github.ref, 'refs/tags/')
26+
with:
27+
repo_token: ${{ secrets.GITHUB_TOKEN }}
28+
file_glob: true
29+
file: pkg/*.zip

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
*.zip

0 commit comments

Comments
 (0)