mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-03-17 03:11:01 +00:00
Update build.yml
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -3,13 +3,6 @@ name: Build & Commit dist
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- articles/**
|
|
||||||
- templates/**
|
|
||||||
- static/**
|
|
||||||
- build.js
|
|
||||||
- package.json
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -18,7 +11,6 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
@@ -33,5 +25,5 @@ jobs:
|
|||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add dist/ -f
|
git add dist/ -f
|
||||||
git diff --staged --quiet && echo "No changes" && exit 0
|
git diff --staged --quiet && echo "No changes" && exit 0
|
||||||
git commit -m "build: update dist [skip ci]"
|
git commit -m "build commited by a bot."
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user