diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..18e9b1d --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,19 @@ +on: [push] + +jobs: + deploy: + runs-on: ubuntu-latest + env: + CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + steps: + - uses: actions/checkout@v3 + + - run: bash fix.sh + + - uses: actions/setup-python@v2 + with: + python-version: '3.10.14' + + - run: npm install -g wrangler + - run: npx wrangler pages deploy public --project-name garden --commit-dirty=true