-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.61 KB
/
build_dist.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
52
53
54
55
56
57
58
name: Build distribution
on:
push:
branches: [ main ]
tags: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Fetch git tags.
run: git fetch --prune --unshallow --tags
- run: ./build.sh ci
- uses: actions/upload-artifact@v4
with:
name: dist-packages
path: build/dist/*
publishArtifacts:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Fetch git tags.
run: git fetch --prune --unshallow --tags
- name: Get version as Github variable.
run: 'echo "VERSION_STR=ci_draft-$GITHUB_RUN_NUMBER" >> $GITHUB_ENV'
- uses: actions/download-artifact@v4
with:
name: dist-packages
path: artifacts
- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ env.VERSION_STR }}
message: CI release ${{ env.VERSION_STR }}
- uses: softprops/action-gh-release@v2
with:
name: ${{ env.VERSION_STR }}
tag_name: ${{ env.VERSION_STR }}
body: |
CI Build ${{ env.VERSION_STR }}
This is an development draft release. Expect that anything may change without notice, and that things may make zero sense.
prerelease: true
files: artifacts/**
fail_on_unmatched_files: true
generate_release_notes: true