-
-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (61 loc) · 1.88 KB
/
Copy pathmain.yml
File metadata and controls
62 lines (61 loc) · 1.88 KB
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
name: Build and deploy
on:
push: {}
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
runs-on: ubuntu-24.04-arm
bundle: ""
- arch: x86_64
runs-on: ubuntu-24.04
bundle: ""
- arch: aarch64
runs-on: ubuntu-24.04-arm
bundle: ffmpeg
- arch: x86_64
runs-on: ubuntu-24.04
bundle: ffmpeg
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.14"
- name: Install dependencies
run: |
python -m pip install --require-hashes -r requirements.lock
- name: appimage
run: |
SOURCE_DATE_EPOCH=$(git show -s --format=%ct) ./build.sh --updinfo --bundle=${{ matrix.bundle }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
archive: false
path: dist/*.AppImage
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
archive: false
path: dist/*.zsync
deploy:
name: Deploy
needs:
- build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: mkdir dist
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
skip-decompress: true
merge-multiple: true
path: ./dist
- run: ./deploy.sh dist/*
env:
RELEASES_API_KEY: ${{ secrets.GITHUB_TOKEN }}