reitanlage-oranienburg/.woodpecker.yml
Tobias Reisinger 97ee74f2df
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix pipeline zip creation 2
2022-12-05 22:24:19 +01:00

43 lines
1 KiB
YAML

workspace:
base: /src/
path: reitanlage-oranienburg/
pipeline:
build_npm:
image: node:16.0.0
secrets: [ fontawesome_token ]
commands:
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
- echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc
- npm install
- npm run production
when:
event:
- tag
prepare_zip:
image: bitnami/git
commands:
- git add -f dist/
- git stash
- git config --global --add safe.directory /src/reitanlage-oranienburg
- git archive --format=zip 'stash@{0}' -o /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip --prefix=reitanlage-oranienburg/
when:
event:
- tag
release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.serguzim.me
files:
- /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip
title: ${CI_COMMIT_TAG}
when:
event:
- tag
branches: main