-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (33 loc) · 923 Bytes
/
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
# .github/workflows/release.yml
name: Release
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-release:
name: Build artifacts
runs-on: ubuntu-latest
container:
image: docker.io/batonogov/pyinstaller-linux:latest
volumes:
- /src:/src
env:
SS_DEV_ID: ${{ secrets.SS_DEV_ID }}
SS_DEV_PASSWORD: ${{ secrets.SS_DEV_PASSWORD }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Build package
run: pyinstaller --onefile /src/app.py
- name: Create zip with artifacts
run: |
zip -r Artie.zip src/dist/app assets config.json launch.sh
- name: Upload assets
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: Artie.zip