From 082d7b577cc7d4a2c1831f6b66c81bd02231cba7 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 | 21 +++++++++++++++++++++ 1 file changed, 21 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..ca1a2c7 --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,21 @@ +on: [push] +jobs: + build-link: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - run: bash fix.sh + + render-links: + container: + image: python:3.10.6 + commands: + - pip install beautifulsoup4 lxml + - python soup.py + + deploy: + runs-on: docker + steps: + - run: npm install -g wrangler + - run: npx wrangler pages deploy public --project-name garden --commit-dirty=true +