-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (54 loc) · 1.58 KB
/
Copy pathrelease-binaries.yml
File metadata and controls
63 lines (54 loc) · 1.58 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
63
name: Release Binaries
on:
release:
types:
- published
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Ensure build script is executable
run: chmod +x bin/buildAnyPlatform.sh
- name: Build linux/amd64 and linux/arm64 binaries
run: bin/buildAnyPlatform.sh linux/amd64 linux/arm64
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: technitium-api-proxy-binaries
path: |
dist/technitium-api-proxy.linux-amd64
dist/technitium-api-proxy.linux-arm64
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: technitium-api-proxy-binaries
path: release
- name: Prepare files
run: |
set -euo pipefail
ls -l release
cp release/technitium-api-proxy.linux-amd64 release/technitium-api-proxy
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
release/technitium-api-proxy
release/technitium-api-proxy.linux-amd64
release/technitium-api-proxy.linux-arm64
fail_on_unmatched_files: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}