Revert changes in Actions

pull/20/head
Bersella 2023-11-29 18:34:11 +08:00
parent 8e3fbb3c7b
commit f40b21e00e
No known key found for this signature in database
GPG Key ID: B1D77BACEF56C7BD
1 changed files with 7 additions and 6 deletions

View File

@ -20,14 +20,14 @@ jobs:
with: with:
hugo-version: latest hugo-version: latest
extended: true extended: true
- uses: addnab/docker-run-action@v3 - run: sudo apt install opencc
with: name: Prepare OpenCC
image: peterdavehello/opencc:latest - run: ./scripts/opencc.sh
run: | name: Execute OpenCC
echo "Running OpenCC"
/github/workspace/scripts/opencc.sh
- run: npm ci - run: npm ci
name: Prepare Node.js packages
- run: hugo --minify - run: hugo --minify
name: Generate webpages for production
env: env:
HUGO_DISABLELANGUAGES: 'en' HUGO_DISABLELANGUAGES: 'en'
- run: npx wrangler pages deploy public --project-name tfsci --branch main - run: npx wrangler pages deploy public --project-name tfsci --branch main
@ -35,3 +35,4 @@ jobs:
env: env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
name: Upload to CloudFlare