generated from vst/haskell-template-hebele
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.31 KB
/
release.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
name: "Release"
on:
push:
branches:
- "main"
permissions:
contents: "write"
pull-requests: "write"
jobs:
release-please:
runs-on: "ubuntu-latest"
steps:
- id: "release"
name: "Release"
uses: "googleapis/release-please-action@v4"
- name: "Checkout Codebase"
if: "${{ steps.release.outputs.release_created }}"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: "Install nix"
if: "${{ steps.release.outputs.release_created }}"
uses: "cachix/install-nix-action@v27"
with:
nix_path: "nixpkgs=channel:nixos-24.05"
extra_nix_config: "system-features = benchmark, big-parallel, nixos-test, uid-range, kvm"
- name: "Use magic Nix cache"
if: "${{ steps.release.outputs.release_created }}"
uses: "DeterminateSystems/magic-nix-cache-action@v7"
- name: "Build Application"
if: "${{ steps.release.outputs.release_created }}"
run: |
nix-shell --run "bash build-static.sh"
- name: "Upload Release Artifact"
if: "${{ steps.release.outputs.release_created }}"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
gh release upload "${{ steps.release.outputs.tag_name }}" /tmp/clompse-static-linux-x86_64