garden/.forgejo/workflows/publish.yml
SouthFox 971858ec55
All checks were successful
/ deploy (push) Successful in 44s
[cicd/fix]: update soup time
2024-05-15 00:57:30 +08:00

26 lines
639 B
YAML

on: [push]
jobs:
deploy:
runs-on: docker
env:
CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
steps:
- uses: actions/checkout@v3
- run: bash fix.sh
- name: Setup Hugo
uses: actions/actions-hugo@v3
with:
hugo-version: '0.119.0'
extended: true
- run: hugo
- run: apt update && apt install -y python3-bs4 python3-lxml
- run: python3 soup.py
- run: npm install -g wrangler
- run: npx wrangler pages deploy public --project-name garden --commit-dirty=true