Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f52d493ea1 | ||
|
|
731631ecd5 | ||
|
|
7f4b6c3092 | ||
|
|
af376a26b4 | ||
|
|
e083f244c0 | ||
|
|
482bbab0ae | ||
|
|
f274a7cbe7 | ||
|
|
e3cb7f1d90 | ||
|
|
c349dbd514 | ||
|
|
383c859666 | ||
|
|
ca7cfab246 | ||
|
|
4f131eba43 | ||
|
|
479a3012c4 | ||
|
|
0969882f97 | ||
|
|
c064791675 |
No files matched your search
@@ -1,19 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
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
|
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "green-tea-site",
|
"name": "green-tea-site",
|
||||||
"version": "26.7.0-beta.0",
|
"version": "0.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "green-tea-site",
|
"name": "green-tea-site",
|
||||||
"version": "26.7.0-beta.0",
|
"version": "0.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^7.0.2",
|
"@astrojs/mdx": "^7.0.2",
|
||||||
"@astrojs/rss": "^4.0.19",
|
"@astrojs/rss": "^4.0.19",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "green-tea-site",
|
"name": "green-tea-site",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "26.7.0-beta.0",
|
"version": "0.0.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.12.0"
|
"node": ">=22.12.0"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user