-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (40 loc) · 1.14 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
# .github/workflows/release.yml
name: Release
on:
release:
types: [published]
permissions:
contents: write
jobs:
build-release:
name: Build artifacts
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Build package
uses: addnab/docker-run-action@v3
with:
image: docker.io/batonogov/pyinstaller-linux:latest
options: |
--platform linux/arm64
--volume ${{ github.workspace }}/:/src
run: |
pip install -r /src/requirements.txt
pyinstaller --onefile /src/src/app.py
- name: Bundle App
run: |
mkdir -p .artie && \
cp -r ./dist/app ./assets ./config.json .artie
zip -r Artie.zip .artie ./Artie\ Scraper.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