Add woodpecker support
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/deploy Pipeline was successful Details
ci/woodpecker/tag/build Pipeline was successful Details
ci/woodpecker/tag/deploy Pipeline was successful Details

This commit is contained in:
Mike Nolan 2024-07-14 23:49:01 -05:00
parent 5d7c4bcee8
commit af1534eaee
5 changed files with 25 additions and 22 deletions

View File

@ -1,22 +0,0 @@
name: Gitea actions
run-name: ${{ gitub.actor }}
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: 'latest'
- run: pip3 install screenplain
- run: pip3 install 'screenplain[PDF]'
- uses: actions/cache@v4
with:
path: screenplain
key: ${{ runner.os }}-screenplain
- run: actions/checkout@v4
- run: mkdir ScreenPlay
- run: screenplain holyloop.fountain ScreenPlay/holyloop.pdf
- uses: actions/upload-artifact@v2
with:
path: ScreenPlay

8
.woodpecker/.build.yml Normal file
View File

@ -0,0 +1,8 @@
steps:
- name: build
image: screenplain:latest
when:
event: push
branch: main
commands:
- screenplain holyloop.fountain holyloop.pdf

10
.woodpecker/.deploy.yml Normal file
View File

@ -0,0 +1,10 @@
steps:
- name: deploy
image: screenplain:latest
when:
event: push
branch: main
commands:
- bash .woodpecker/publish.sh
volumes:
- /mnt/20TB/Artifacts:/deploy_dir

3
.woodpecker/publish.sh Normal file
View File

@ -0,0 +1,3 @@
. /deploy_dir/setpath.sh
ln -s "$DEPLOY_DIR" publish
screenplain holyloop.fountain publish/holyloop.pdf

4
update.sh Executable file
View File

@ -0,0 +1,4 @@
git commit -am "$1"
git push --all
git tag -a `date +%Y%m%d_%H%M%S` -m "$1"
git push --tags