nosignal-shell/.github/workflows/release.yml
2026-04-19 21:15:33 +10:00

42 lines
1 KiB
YAML

name: Create release
on:
push:
tags:
- "v*"
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Create packages
run: |
mkdir -p release
rsync -av \
--exclude='release' \
--exclude='.*' \
--exclude='nix' \
--exclude='flake.lock' \
--exclude='flake.nix' \
. release
tar -czf caelestia-shell-${{ github.ref_name }}.tar.gz release
cp caelestia-shell-${{ github.ref_name }}.tar.gz caelestia-shell-latest.tar.gz
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: |
caelestia-shell-${{ github.ref_name }}.tar.gz
caelestia-shell-latest.tar.gz
generate_release_notes: true
- name: Update stable branch
run: |
git branch -f stable "$GITHUB_SHA"
git push origin stable --force