Add CI and release workflows
CI / test (push) Successful in 28s

This commit is contained in:
Veillax committed 2026-10-27 18:06:42 -06:00
1 parent 69933f37e5
commit ea1a0c85a9
4 files changed
+134

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
name: Release
# Push a tag such as v0.2.0 to publish public/ as a release archive that can be
# unpacked into SANDBAR_APP_DIR or hosted on any static site:
# git tag -a v0.2.0 -m "remora v0.2.0" && git push origin v0.2.0
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # release notes come from the history since the previous tag
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Test
run: npm test
- name: Build release archive
run: |
mkdir -p dist
tar -C public -czf "dist/remora_${GITHUB_REF_NAME}.tar.gz" .
(cd public && zip -qr "../dist/remora_${GITHUB_REF_NAME}.zip" .)
(cd dist && sha256sum remora_* > SHA256SUMS)
# Optional secret RELEASE_TOKEN: an access token that can write releases, for
# servers where the automatic job token can't.
- name: Publish the release
env:
TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}
run: sh deploy/publish-release.sh "${GITHUB_REF_NAME}"