Skip to content

Commit 963d9c8

Browse files
authored
Merge pull request #47 from flucoma/pre-production
1.0.6 preprod to prod
2 parents 5ec8fce + 722f817 commit 963d9c8

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: flucoma/actions/env@main
1111
- uses: flucoma/actions/cli@main
1212
with:
13-
branch: origin/production
13+
branch: origin/${{ github.ref_name }}
1414

1515
- name: compress archive
1616
run: 7z a FluCoMa-CLI-Windows.zip FluidCorpusManipulation
@@ -28,7 +28,7 @@ jobs:
2828
- uses: flucoma/actions/env@main
2929
- uses: flucoma/actions/cli@main
3030
with:
31-
branch: origin/production
31+
branch: origin/${{ github.ref_name }}
3232

3333
- name: sign binaries
3434
uses: flucoma/actions/distribution@main
@@ -58,7 +58,7 @@ jobs:
5858
- uses: flucoma/actions/env@main
5959
- uses: flucoma/actions/cli@main
6060
with:
61-
branch: origin/production
61+
branch: origin/${{ github.ref_name }}
6262

6363
- name: compress archive
6464
run: tar -zcvf FluCoMa-CLI-Linux.tar.gz FluidCorpusManipulation
@@ -72,7 +72,7 @@ jobs:
7272
- run: ls -r
7373

7474
- id: get-version
75-
run: echo "::set-output name=version::$(cat flucoma.version.rc)"
75+
run: echo "version=$(cat flucoma.version.rc)" >> $GITHUB_OUTPUT
7676
working-directory: build/_deps/flucoma-core-src
7777

7878
release:
@@ -93,6 +93,15 @@ jobs:
9393
name: winbuild
9494

9595
#### UPLOAD RELEASE ####
96+
97+
- name: delete pre-existing release
98+
uses: dev-drprasad/delete-tag-and-release@v0.2.1
99+
with:
100+
delete_release: true # default: false
101+
tag_name: ${{ needs.linux.outputs.version }} # tag name to delete
102+
env:
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104+
96105
- name: package and upload
97106
uses: softprops/action-gh-release@v1
98107
with:
@@ -101,4 +110,5 @@ jobs:
101110
files: FluCoMa*
102111
prerelease: true
103112
tag_name: ${{ needs.linux.outputs.version }}
113+
target_commitish: ${{ github.sha }}
104114
draft: false

0 commit comments

Comments
 (0)