This commit is contained in:
parent
1b2a137089
commit
87a3c66c8e
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/publish.yml
Normal file
24
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
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
|
||||
|
||||
- run: apt update && apt install -y python3-bs4 python3-lxml
|
||||
- run: python3 soup.py
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: actions/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.119.0'
|
||||
extended: true
|
||||
|
||||
- run: npm install -g wrangler
|
||||
- run: npx wrangler pages deploy public --project-name garden --commit-dirty=true
|
Loading…
Reference in a new issue