Add surge.sh step on PRs
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Neil Hanlon 2022-11-14 06:22:46 -05:00
parent c6340dcf8c
commit 14cb8d9980
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -13,6 +13,20 @@ pipeline:
commands: commands:
- hugo - hugo
preview:
image: woodpeckerci/plugin-surge-preview
secrets: [SURGE_TOKEN, SURGE_GITEA]
settings:
path: public
surge_token:
from_secret: SURGE_TOKEN
forge_type: gitea
forge_url: https://git.shrug.pw
forge_repo_token:
from_secret: SURGE_GITEA
when:
event: pull_request
publish: publish:
image: git.shrug.pw/neil/containers/woodpecker-ci:latest image: git.shrug.pw/neil/containers/woodpecker-ci:latest
secrets: [ssh_key] secrets: [ssh_key]
@ -25,3 +39,6 @@ pipeline:
- chmod 0700 ~/.ssh/ - chmod 0700 ~/.ssh/
- chmod 0600 ~/.ssh/id_rsa - chmod 0600 ~/.ssh/id_rsa
- bash deploy.sh - bash deploy.sh
when:
branch: main