diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..9a5b100 --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,18 @@ +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 + + - run: npm install -g wrangler + - run: npx wrangler pages deploy public --project-name garden --commit-dirty=true