Skip to content

chore(deps): update peter-evans/find-comment action to v3 (#21) #15

chore(deps): update peter-evans/find-comment action to v3 (#21)

chore(deps): update peter-evans/find-comment action to v3 (#21) #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
workflow_dispatch:
repository_dispatch:
types: [update-content]
permissions:
contents: write
concurrency:
group: pages
cancel-in-progress: false
env:
TZ: Asia/Shanghai
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
deploy:
if: github.ref_name == 'main' && github.event_name != 'pull_request' && github.repository == 'zotero-chinese/website'
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Download Build Output
uses: actions/download-artifact@v4
with:
name: build-result
path: dist
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
repository-name: zotero-chinese/zotero-chinese.github.io
branch: gh-pages
folder: dist
single-commit: true
token: ${{ secrets.ACCESS_TOKEN }}
git-config-name: github-actions[bot]
git-config-email: github-actions[bot]@users.noreply.github.com
- name: Deploy to Netlify
id: netlify
uses: nwtgck/[email protected]
with:
publish-dir: "dist"
deploy-message: "Deploy from GitHub Actions"
production-deploy: true
enable-commit-comment: false
enable-pull-request-comment: false
enable-commit-status: false
enable-github-deployment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 3