tangled
alpha
login
or
join now
dunkirk.sh
/
ctfd-alerts
3
fork
atom
⛳ alerts for any ctfd instance via ntfy
3
fork
atom
overview
issues
pulls
pipelines
feat: add release workflow
dunkirk.sh
8 months ago
c7cca3bc
5946aac2
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+74
1 changed file
expand all
collapse all
unified
split
.github
workflows
release.yml
+74
.github/workflows/release.yml
···
1
1
+
name: Release
2
2
+
3
3
+
on:
4
4
+
release:
5
5
+
types: [created]
6
6
+
7
7
+
jobs:
8
8
+
build-and-upload:
9
9
+
runs-on: ubuntu-latest
10
10
+
permissions:
11
11
+
contents: write
12
12
+
13
13
+
steps:
14
14
+
- name: Checkout repository
15
15
+
uses: actions/checkout@v4
16
16
+
17
17
+
- name: Install Nix
18
18
+
uses: DeterminateSystems/nix-installer-action@main
19
19
+
20
20
+
- name: Configure Nix cache
21
21
+
uses: DeterminateSystems/magic-nix-cache-action@main
22
22
+
23
23
+
- name: Build releases using flake
24
24
+
run: nix run .#ctfd-alerts-build
25
25
+
26
26
+
- name: Upload Linux AMD64 binary
27
27
+
uses: actions/upload-release-asset@v1
28
28
+
env:
29
29
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
30
+
with:
31
31
+
upload_url: ${{ github.event.release.upload_url }}
32
32
+
asset_path: ./bin/ctfd-alerts-linux-amd64
33
33
+
asset_name: ctfd-alerts-linux-amd64
34
34
+
asset_content_type: application/octet-stream
35
35
+
36
36
+
- name: Upload Linux ARM64 binary
37
37
+
uses: actions/upload-release-asset@v1
38
38
+
env:
39
39
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
40
+
with:
41
41
+
upload_url: ${{ github.event.release.upload_url }}
42
42
+
asset_path: ./bin/ctfd-alerts-linux-arm64
43
43
+
asset_name: ctfd-alerts-linux-arm64
44
44
+
asset_content_type: application/octet-stream
45
45
+
46
46
+
- name: Upload macOS AMD64 binary
47
47
+
uses: actions/upload-release-asset@v1
48
48
+
env:
49
49
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50
50
+
with:
51
51
+
upload_url: ${{ github.event.release.upload_url }}
52
52
+
asset_path: ./bin/ctfd-alerts-darwin-amd64
53
53
+
asset_name: ctfd-alerts-darwin-amd64
54
54
+
asset_content_type: application/octet-stream
55
55
+
56
56
+
- name: Upload macOS ARM64 binary
57
57
+
uses: actions/upload-release-asset@v1
58
58
+
env:
59
59
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
60
+
with:
61
61
+
upload_url: ${{ github.event.release.upload_url }}
62
62
+
asset_path: ./bin/ctfd-alerts-darwin-arm64
63
63
+
asset_name: ctfd-alerts-darwin-arm64
64
64
+
asset_content_type: application/octet-stream
65
65
+
66
66
+
- name: Upload Windows AMD64 binary
67
67
+
uses: actions/upload-release-asset@v1
68
68
+
env:
69
69
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
70
+
with:
71
71
+
upload_url: ${{ github.event.release.upload_url }}
72
72
+
asset_path: ./bin/ctfd-alerts-windows-amd64.exe
73
73
+
asset_name: ctfd-alerts-windows-amd64.exe
74
74
+
asset_content_type: application/octet-stream