Revert changes in Actions
parent
8e3fbb3c7b
commit
f40b21e00e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue