🐷重构action,将构建产物放到另一分支(@CCKNBC)

This commit is contained in:
2024-09-05 09:41:28 +08:00
parent 4781b7895a
commit a55fef8524
6 changed files with 17 additions and 2423 deletions

View File

@@ -64,29 +64,15 @@ jobs:
- name: Commit changes
run: |
mkdir pages
cp -r main index.html all.json errors.json pages/
cp -r main index.html all.json errors.json ./rss_subscribe/last_articles.json pages/
cd pages
git init
git add .
git commit -m "⏱️ $(date +"%Z %Y-%m-%d %A %H:%M:%S") Updated By GitHub Actions"
git commit -m "⏱️ $(date +"%Y年%m%d日-%H%M分") GitHub Actions定时更新"
git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:gh-pages
- name: Delete Workflow Runs
uses: Mattraks/delete-workflow-runs@v2
with:
retain_days: 90
keep_minimum_runs: 6
keepalive-workflow:
name: Keepalive Workflow
if: ${{ always() }}
needs: friend-circle-lite
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2
with:
committer_username: "github-actions[bot]"
committer_email: "github-actions[bot]@users.noreply.github.com"
retain_days: 30
keep_minimum_runs: 6