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}"