Commit e8070a67 authored by Rahix's avatar Rahix 🦀
Browse files

ci: Also build release pipeline for tags

To ensure we get clean version information, update the mtime of
`.git/HEAD` before running the release pipeline.  Otherwise tags would
just end up re-using the version information from the untagged commit.
parent c52f3ff6
...@@ -41,6 +41,7 @@ build-release: ...@@ -41,6 +41,7 @@ build-release:
<<: *global_cache <<: *global_cache
key: release-build key: release-build
script: script:
- touch .git/HEAD
- wasm-pack build - wasm-pack build
- cd www - cd www
- npm install - npm install
...@@ -51,6 +52,7 @@ build-release: ...@@ -51,6 +52,7 @@ build-release:
- www/dist - www/dist
only: only:
- master - master
- tags
deploy: deploy:
stage: deploy stage: deploy
...@@ -60,3 +62,4 @@ deploy: ...@@ -60,3 +62,4 @@ deploy:
- "cp -r www/dist/* /var/www/game" - "cp -r www/dist/* /var/www/game"
only: only:
- master - master
- tags
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment