From e6bf3c6e40d3d83a677b3cee6e4f3d034722c757 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 14 May 2024 23:17:11 +0800 Subject: [PATCH] [cicd] add forgejo action for build --- .forgejo/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/publish.yml diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..7c95aa5 --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,25 @@ +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 + + - uses: actions/setup-python@v4 + with: + python-version: '3.10.14' + platform: linux + env: + AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache + + - run: pip install beautifulsoup4 lxml + - run: python soup.py + + - run: npm install -g wrangler + - run: npx wrangler pages deploy public --project-name garden --commit-dirty=true