summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5e65b8cb..1f4da5ab 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -43,3 +43,14 @@ jobs:
with:
name: inkstitch-windows
path: artifacts
+ - name: create/update dev release
+# if: not tagged v1.2.3
+ shell: bash
+ run: |
+ branch="${GITHUB_REF#refs/heads/}"
+ tag="dev-build-$(echo $branch | tr / -)"
+ git tag -f $tag
+ git push -f "https://git:${{secrets.INKSTITCH_BUILDS_GITHUB_TOKEN}}@github.com/inkstitch/inkstitch.git" $tag
+
+ gem install dpl
+ dpl --provider=releases --api-key=${{secrets.INKSTITCH_BUILDS_GITHUB_TOKEN}} --file=artifacts/*.zip --file_glob --overwrite --tag_name=$tag --prerelease --name="development build of $branch" --body="Automatic development build of $branch ($GITHUB_COMMIT) built on $(date +'%F %T %Z')."