-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.14 KB
/
publish-exe.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
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
name: Build and publish executable
permissions:
contents: write
pages: write
id-token: write
attestations: write
jobs:
build_publish:
name: Bundle x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build bundle
run: cd dist && sudo ./build.sh --dist --bundle
# Support verifiable builds
- name: Compute hashes
shell: bash
run: |
echo "--- BEGIN SHA256SUM ---"
sha256sum dist/bin/*
echo "--- END SHA256SUM ---"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: bin
path: dist/bin/*
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: dist/bin/*
- name: Publish bundle
uses: softprops/action-gh-release@v1
with:
name: Automated build of ${{ github.ref }}
files: dist/bin/*
draft: true
prerelease: false
body: This is an automated build of commit ${{ github.ref }}.