Reverted, praying for Ubuntu 24 LTS _(:_J L )_ #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Site | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .github | |
- README.md | |
- LICENSE | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: latest | |
extended: true | |
- run: sudo apt install -y opencc | |
name: Prepare OpenCC | |
- run: ./scripts/opencc.sh | |
name: Execute OpenCC | |
- run: npm ci | |
name: Prepare Node.js packages | |
- run: hugo --minify | |
name: Generate webpages for production | |
env: | |
HUGO_DISABLELANGUAGES: 'en' | |
- run: npx wrangler pages deploy public --project-name tfsci --branch main | |
if: github.ref == 'refs/heads/main' | |
env: | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
name: Upload to CloudFlare |