NaxGCC-FW/.forgejo/workflows/nightly-release.yml

55 lines
1.6 KiB
YAML
Raw Normal View History

2024-03-25 15:25:55 +00:00
name: Publish nightly release
on:
push:
branches: ["main"]
concurrency:
group: main
cancel-in-progress: true
jobs:
build:
runs-on: nix-flakes
2024-03-25 15:25:55 +00:00
steps:
- name: Set up attic binary cache
2024-09-01 15:21:30 +00:00
uses: https://git.naxdy.org/NaxdyOrg/attic-action@v0.3
with:
endpoint: "${{ vars.BINARY_CACHE_URL }}"
token: "${{ secrets.PUBLIC_BINARY_CACHE_AUTH_KEY }}"
cache: "${{ vars.PUBLIC_BINARY_CACHE_NAME }}"
2024-03-25 15:25:55 +00:00
- uses: actions/checkout@v4
- name: Run flake checks
run: |
nix flake check . --print-build-logs -j auto
2024-03-25 15:25:55 +00:00
- name: Build firmware image
run: |
nix build .# -o dist --print-build-logs
2024-03-26 20:21:34 +00:00
- name: (Re-)generate tag
run: |
git config --global user.email "noreply@naxdy.org"
git config --global user.name "Naxbot"
git fetch --tags
git tag -d nightly || true
git tag nightly -m "Nightly Release"
git checkout nightly
git push --set-upstream origin nightly --force
2024-03-25 15:25:55 +00:00
- name: Publish nightly release
uses: https://gitea.com/actions/gitea-release-action@v1.3.0
with:
token: "${{ github.token }}"
tag_name: nightly
prerelease: true
name: "Nightly Release"
2024-04-05 11:04:53 +00:00
body: >
2024-04-05 21:46:05 +00:00
This is an automatically generated nightly release, based on the current state of the `main` branch.
2024-04-05 11:04:53 +00:00
**WARNING:** This release may contain untested changes and could potentially break your configuration. Use at your own risk. **Do not report issues you encounter with nightly releases.**
2024-03-25 15:25:55 +00:00
files: |
dist/bin/*