CI / build (push) Successful in 41s
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: rocky-10
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Type check
|
|
run: npm run check
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Create release archive
|
|
run: |
|
|
VERSION="${GITHUB_REF_NAME#v}"
|
|
# Archive the *contents* of dist/ rather than dist/ itself, so it
|
|
# untars straight into an nginx web root.
|
|
tar -czf "tern-web-${VERSION}.tgz" -C dist .
|
|
sha256sum "tern-web-${VERSION}.tgz" > "tern-web-${VERSION}.tgz.sha256"
|
|
|
|
- name: Create release
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
server_url: ${{ gitea.server_url }}
|
|
tag_name: ${{ gitea.ref_name }}
|
|
name: ${{ gitea.ref_name }}
|
|
files: |-
|
|
tern-web-*.tgz
|
|
tern-web-*.tgz.sha256
|