2024-04-08 20:46:24 +00:00
|
|
|
name: Publish stable release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: nix-flakes
|
|
|
|
|
|
|
|
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-04-08 20:46:24 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build firmware image
|
|
|
|
run: |
|
|
|
|
nix build .# -o dist --print-build-logs
|
|
|
|
- name: Publish stable release
|
|
|
|
uses: https://gitea.com/actions/gitea-release-action@v1.3.0
|
|
|
|
with:
|
|
|
|
token: "${{ github.token }}"
|
2024-04-08 21:04:56 +00:00
|
|
|
tag_name: "${{ env.GITHUB_REF_NAME }}"
|
|
|
|
name: "NaxGCC ${{ env.GITHUB_REF_NAME }}"
|
|
|
|
body_path: .changelogs/${{ env.GITHUB_REF_NAME }}.md
|
2024-04-08 20:46:24 +00:00
|
|
|
files: |
|
|
|
|
dist/bin/*
|