Compare commits

..
Author SHA1 Message Date
chrnx 6e78fce659 chore: version to CalVer 26.7.0-beta.0
CI / build (pull_request) Successful in 18s
Aligns website with the org-wide CalVer scheme; every package's first tag is v26.7.0-beta.0 (no production yet).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 15:00:16 -05:00
chrnx deac98a63c Merge pull request 'ci: build gate + promote + release workflows (two-forge)' (#1) from chore/ci-workflows into main
CI / build (push) Successful in 12s
Promote → GitHub / push-github (push) Successful in 7s
2026-07-18 18:53:56 +00:00
chrnx f65fc3742c ci: bump Node to 22 (Astro 7 requires >=22.12)
CI / build (pull_request) Successful in 19s
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:51:08 -05:00
chrnx 92815796e6 ci: add build gate + promote + release workflows (two-forge)
CI / build (pull_request) Failing after 24s
ci.yml: astro build on PR/push to main. promote.yml (Gitea-only): mirror main + tags to Expressive-Tea/green-tea-site. release.yml (GitHub-only): on a v* tag, build and attach dist as a .tar.gz to the GitHub release for the cPanel deploy.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:47:50 -05:00
5 changed files with 75 additions and 3 deletions

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
name: CI
# Build gate. Runs on both forges (path .github is read by Gitea and GitHub).
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
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
+27
View File
@@ -0,0 +1,27 @@
name: Promote → GitHub
# Runs on GITEA ONLY. Mirrors only main + version tags to the public GitHub repo.
on:
push:
branches: [main]
tags: ['v*']
jobs:
push-github:
if: ${{ github.server_url != 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push main + tags to GitHub
env:
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
run: |
git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/green-tea-site.git"
if [ "${{ github.ref_type }}" = "tag" ]; then
git push github "refs/tags/${{ github.ref_name }}"
else
git push github "HEAD:refs/heads/main"
git push github --tags
fi
+26
View File
@@ -0,0 +1,26 @@
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
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "green-tea-site",
"version": "0.0.1",
"version": "26.7.0-beta.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "green-tea-site",
"version": "0.0.1",
"version": "26.7.0-beta.0",
"dependencies": {
"@astrojs/mdx": "^7.0.2",
"@astrojs/rss": "^4.0.19",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "green-tea-site",
"type": "module",
"version": "0.0.1",
"version": "26.7.0-beta.0",
"engines": {
"node": ">=22.12.0"
},