Files
website/.github/workflows/release.yml
T
chrnx f65fc3742c
CI / build (pull_request) Successful in 19s
ci: bump Node to 22 (Astro 7 requires >=22.12)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:51:08 -05:00

27 lines
795 B
YAML

name: Release → dist.tar.gz
# Production artifact. Runs on GITHUB ONLY, on a version tag. Builds the static site
# and packages dist/ as a .tar.gz attached to the GitHub release — the cPanel deploy
# pulls that artifact.
on:
push:
tags: ['v*']
jobs:
package:
if: ${{ github.server_url == 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm ci
- run: npm run build
- name: Package dist/
run: tar -czf "green-tea-site-${{ github.ref_name }}.tar.gz" -C dist .
- name: Attach to GitHub release
uses: softprops/action-gh-release@v2
with:
files: green-tea-site-${{ github.ref_name }}.tar.gz