-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (50 loc) · 1.61 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
59
name: Nightly Release
on:
workflow_dispatch:
schedule:
- cron: "0 9 * * *" # Runs at 9:00 AM UTC, which is 3:00 AM MT during Daylight Saving Time
permissions:
contents: read
jobs:
test:
uses: ./.github/workflows/pr-tests.yaml
push:
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-tags: "true"
- name: Login to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Environment (Go, Node, Homebrew, UDS CLI, k3d)
uses: ./.github/actions/setup
- name: smoke-test
run: uds run test:smoke --set DIR=hack/smoke-test
- name: Publish
run: |
uds run build:publish-uds-runtime --set REF=nightly-unstable --set DIR=hack/nightly
- name: Build binary artifacts
run: |
uds run build:all
- name: Update nightly-unstable tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
working-directory: hack/nightly
run: |
# cleanup old release
gh release delete nightly-unstable --cleanup-tag -y || true
# generate new release
gh release create nightly-unstable ./build/* ../../build/*\
-t "nightly-unstable" \
--prerelease \
-n 'Nightly unstable build'