-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.05 KB
/
build.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
name: CI
on:
push:
branches:
- master
jobs:
check:
runs-on: ubuntu-22.04
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Run `nix build`
run: nix build .
- name: Collect files
run: |
mkdir upload
cp ./result/rsp-ruination.z64 upload
- name: Upload files
uses: actions/upload-artifact@master
with:
name: rsp-ruination
path: upload
- name: Generate Release
if: github.ref == 'refs/heads/trunk'
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
body_path: CHANGELOG
generate_release_notes: false
name: 'Latest Development Version'
tag_name: "latest"
files: |
./result/rsp-ruination.z64