diff --git a/.woodpecker.yml b/.woodpecker.yml index b9543ec..24c039d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,7 +9,7 @@ pipeline: commands: - pwd - echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc - - echo "//npm.fontawesome.com/:_authToken=${FONTAWESOME_TOKEN}" >> .npmrc + - echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc - npm install - npm run production @@ -17,10 +17,9 @@ pipeline: image: bash 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 + - "zip -r reitanlage-oranienburg-${DRONE_TAG}.zip reitanlage-oranienburg/ + -x .git* .npmrc .woodpecker.yml package*.json node_modules" release: image: plugins/gitea-release @@ -29,10 +28,10 @@ pipeline: from_secret: gitea_token base_url: https://git.serguzim.me files: - - reitanlage-oranienburg-${DRONE_TAG}.zip + - /src/reitanlage-oranienburg-${DRONE_TAG}.zip title: ${DRONE_TAG} when: event: - tag -#branches: main +branches: main