-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (49 loc) · 1.55 KB
/
nightly-release.yaml
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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
name: Nightly Release
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *" ## nightly at 3am UTC
permissions:
contents: read
jobs:
test:
permissions:
packages: write
uses: ./.github/workflows/release-tests.yaml
push:
runs-on: ubuntu-latest
environment: release-nightly
needs: test
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-tags: 'true'
- name: Setup golang
uses: ./.github/actions/golang
- name: Install UDS CLI
uses: ./.github/actions/install-uds-cli
- name: Build binary artifacts
run: |
uds run build-all
- name: Rename artifacts for readability
run: |
mv build/uds build/uds-nightly-linux-amd64
mv build/uds-arm build/uds-nightly-linux-arm64
mv build/uds-mac-apple build/uds-nightly-darwin-arm64
mv build/uds-mac-intel build/uds-nightly-darwin-amd64
- name: Update nightly-unstable tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
run: |
# cleanup old release
gh release delete nightly-unstable --cleanup-tag -y || true
# generate new release
gh release create nightly-unstable ./build/* \
-t "nightly-unstable" \
--prerelease \
-n 'Nightly unstable build'