diff --git a/.woodpecker.yml b/.woodpecker.yml index 381b3f4..fab6c14 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,44 +4,40 @@ name: default workspace: path: /drone/reitanlage-oranienburg -steps: -- name: build npm - image: node:16.0.0 - pull: always - environment: - FA_TOKEN: - from_secret: fontawesome_token - commands: - - echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc - - echo "//npm.fontawesome.com/:_authToken=${FA_TOKEN}" >> .npmrc - - npm install - - npm run production +pipeline: + build_npm: + image: node:16.0.0 + pull: always + environment: + FA_TOKEN: + from_secret: fontawesome_token + commands: + - echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc + - echo "//npm.fontawesome.com/:_authToken=${FA_TOKEN}" >> .npmrc + - npm install + - npm run production -- name: prepare zip - image: bash - pull: always - commands: - - apk add zip - - rm -rf .git node_modules src - - cd .. - - zip -r ro.zip reitanlage-oranienburg - - mv ro.zip /drone/reitanlage-oranienburg/reitanlage-oranienburg-${DRONE_TAG}.zip + prepare_zip: + image: bash + pull: always + commands: + - apk add zip + - rm -rf .git node_modules src + - cd .. + - zip -r ro.zip reitanlage-oranienburg + - mv ro.zip /drone/reitanlage-oranienburg/reitanlage-oranienburg-${DRONE_TAG}.zip -- name: gitea release - image: plugins/gitea-release - settings: - api_key: - from_secret: gitea_token - base_url: https://git.serguzim.me - files: - - reitanlage-oranienburg-${DRONE_TAG}.zip - title: ${DRONE_TAG} - when: - event: - - tag + release: + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + base_url: https://git.serguzim.me + files: + - reitanlage-oranienburg-${DRONE_TAG}.zip + title: ${DRONE_TAG} + when: + event: + - tag -trigger: - ref: - include: - - refs/tags/** - - refs/heads/drone-test +branches: main