forked from t-oster/VisiCut
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (57 loc) · 1.63 KB
/
github-build.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build
on:
push:
branches_ignore:
- gh-pages
pull_request:
branches_ignore:
- gh-pages
workflow_dispatch:
jobs:
distribute:
strategy:
fail-fast: false
matrix:
target:
- zip
- windows-nsis
- macos-bundle
- linux-appimage
- linux-checkinstall
name: Distribute ${{ matrix.target }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- name: Build distribution
run: |
# we use a separate directory called output to "collect" all the build artifacts
# this makes uploading the artifacts a *lot* easier
mkdir output
pushd output
bash ../distribute/distribute-docker.sh ${{ matrix.target }}
- name: Archive built files
uses: actions/upload-artifact@v3
with:
name: output binaries
path: |
output/*
upload:
name: Create release and upload artifacts
needs:
- distribute
runs-on: ubuntu-20.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Inspect directory after downloading artifacts
run: ls -alFR
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget https://github.com/TheAssassin/pyuploadtool/releases/download/20231223-1/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage "output binaries"/*.*