summaryrefslogtreecommitdiffstats
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-03-26 08:32:21 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-03-26 08:35:41 +0800
commite843eda0266950bde0d39c9f1b1b8a08d16d9a44 (patch)
tree006733afe7841e0318a0c90434a47fe1c7e90e34 /.github/workflows/release.yml
parent8e8e0119441518062cc7612b360eca1beaf7143c (diff)
Adjust releases for master: run on tags only
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3dba2ce..ce59b63 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,17 +14,17 @@ name: release
on:
push:
# Enable when testing release infrastructure on a branch.
- branches:
- - release
+# branches:
+# - release
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
create-release:
name: create-release
runs-on: ubuntu-latest
- env:
- # Set to force version number, e.g., when no tag exists.
- ARTIFACT_VERSION: TEST-0.0.7
+# env:
+# # Set to force version number, e.g., when no tag exists.
+# ARTIFACT_VERSION: TEST-0.0.7
steps:
- name: Create artifacts directory
run: mkdir artifacts
@@ -180,10 +180,8 @@ jobs:
shell: bash
run: |
staging="dua-${{ env.RELEASE_VERSION }}-${{ matrix.target }}"
- mkdir -p "$staging"/{complete,doc}
- cp {README.md,LICENSE} "$staging/"
- cp CHANGELOG.md "$staging/doc/"
+ cp {README.md,LICENSE,CHANGELOG.md} "$staging/"
if [ "${{ matrix.os }}" = "windows-2019" ]; then
cp "target/${{ matrix.target }}/release/dua.exe" "$staging/"