From 2e2f89a64bed6dab733d23fda3e7da55183e8216 Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Wed, 20 Apr 2022 21:42:53 +0200
Subject: [PATCH] Try to fix pipeline 8

---
 .woodpecker.yml | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/.woodpecker.yml b/.woodpecker.yml
index 521ac73..c6dae24 100644
--- a/.woodpecker.yml
+++ b/.woodpecker.yml
@@ -7,17 +7,22 @@ pipeline:
     image: node:16.0.0
     secrets: [ fontawesome_token ]
     commands:
-      - pwd
-      #- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
-      #- echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc
-      #- npm install
-      #- npm run production
+      - 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 config --global --add safe.directory /src/reitanlage-oranienburg
-      - git archive --format=zip HEAD -o /src/reitanlage-oranienburg-${DRONE_TAG}.zip --prefix=reitanlage-oranienburg
+      - git archive --format=zip HEAD -o /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip --prefix=reitanlage-oranienburg
+    when:
+      event:
+        - tag
 
   release:
     image: plugins/gitea-release
@@ -26,8 +31,8 @@ pipeline:
         from_secret: gitea_token
       base_url: https://git.serguzim.me
       files:
-        - /src/reitanlage-oranienburg-${DRONE_TAG}.zip
-      title: ${DRONE_TAG}
+        - /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip
+      title: ${CI_COMMIT_TAG}
     when:
       event:
         - tag