CI changes

This commit is contained in:
Shiny Nematoda 2023-01-01 01:04:39 +05:30
parent 7cc847146d
commit 907d66ea1d

View file

@ -9,6 +9,19 @@ pipeline:
exclude: ['*.md', '.gitea/*'] exclude: ['*.md', '.gitea/*']
event: ['push', 'pull_request'] event: ['push', 'pull_request']
surge:
image: node:alpine
commands:
- npm install surge
- cp dist/index.html dist/200.html
- npx surge ./dist hyperpipe.surge.sh
secrets: [surge_login, surge_token]
when:
branch: main
path:
exclude: ['*.md', '.gitea/*']
event: ['push']
docker: docker:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
@ -24,16 +37,3 @@ pipeline:
path: path:
exclude: ['*.md', '.gitea/*'] exclude: ['*.md', '.gitea/*']
event: ['push'] event: ['push']
deploy:
image: node:alpine
commands:
- npm install surge
- cp dist/index.html dist/200.html
- npx surge ./dist hyperpipe.surge.sh
secrets: [surge_login, surge_token]
when:
branch: main
path:
exclude: ['*.md', '.gitea/*']
event: ['push']