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