[cicd] add forgejo action for build
This commit is contained in:
parent
1b2a137089
commit
7f987089e2
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/publish.yml
Normal file
26
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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
|
||||||
|
steps:
|
||||||
|
- run: ls -lah
|
||||||
|
- run: pip install beautifulsoup4 lxml
|
||||||
|
- run: python soup.py
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: docker
|
||||||
|
env:
|
||||||
|
CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
steps:
|
||||||
|
- run: npm install -g wrangler
|
||||||
|
- run: npx wrangler pages deploy public --project-name garden --commit-dirty=true
|
||||||
|
|
Loading…
Reference in a new issue