Nightly Release #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
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: 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' |