Skip to content

Commit 0dc2882

Browse files
committed
Switch to alternate action for latest release
1 parent 4c809b4 commit 0dc2882

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ jobs:
4242

4343
- name: Publish Release
4444
if: ${{ env.DEFAULT_BRANCH == github.ref_name && github.event_name == 'push' && github.base_ref == '' }}
45-
uses: "marvinpinto/action-automatic-releases@latest"
46-
with:
47-
repo_token: "${{ secrets.PAT }}"
48-
automatic_release_tag: "latest"
49-
prerelease: true
50-
title: "Development Build: ${{ env.DEFAULT_BRANCH }}"
51-
files: /home/runner/work/_temp/_github_home/lkDist/discvr/DISCVR-*
45+
env:
46+
GH_TOKEN: "${{ secrets.PAT }}"
47+
runs: |
48+
COUNT=`gh release list | grep 'latest' | wc -l`
49+
if [ $COUNT 1 == '0' ];then gh release delete 'latest' --cleanup-tag -y; fi
50+
51+
git tag "latest"
52+
git push -f origin "latest"
53+
54+
gh release create 'latest' --verify-tag --generate-notes --prerelease --title: "Development Build: ${{ env.DEFAULT_BRANCH }}"
55+
gh release upload 'latest' /home/runner/work/_temp/_github_home/lkDist/discvr/DISCVR-*

0 commit comments

Comments
 (0)