Skip to content

Commit e748875

Browse files
authored
Merge pull request #362 from flucoma/pre-production
1.0.6 preprod to prod
2 parents b6a3085 + 64d7f48 commit e748875

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yml

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

1515
- uses: actions/upload-artifact@v3
1616
with:
@@ -26,7 +26,7 @@ jobs:
2626
- uses: flucoma/actions/env@main
2727
- uses: flucoma/actions/max@main
2828
with:
29-
branch: origin/production
29+
branch: origin/${{ github.ref_name }}
3030

3131
- name: sign and notarise
3232
uses: flucoma/actions/distribution@main
@@ -46,7 +46,7 @@ jobs:
4646
path: release-packaging/FluidCorpusManipulation/
4747

4848
- id: get-version
49-
run: echo "::set-output name=version::$(cat flucoma.version.rc)"
49+
run: echo "version=$(cat flucoma.version.rc)" >> $GITHUB_OUTPUT
5050
working-directory: build/_deps/flucoma-core-src
5151

5252
release:
@@ -69,6 +69,14 @@ jobs:
6969

7070
- name: zip
7171
run: zip -r FluCoMa-Max-"${{ needs.macbuild.outputs.version }}".zip "FluidCorpusManipulation"
72+
73+
- name: delete pre-existing release
74+
uses: dev-drprasad/[email protected]
75+
with:
76+
delete_release: true # default: false
77+
tag_name: ${{ needs.macbuild.outputs.version }} # tag name to delete
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7280

7381
- name: package and upload
7482
uses: softprops/action-gh-release@v1
@@ -78,4 +86,5 @@ jobs:
7886
files: FluCoMa*
7987
prerelease: true
8088
tag_name: ${{ needs.macbuild.outputs.version }}
89+
target_commitish: ${{ github.sha }}
8190
draft: false

0 commit comments

Comments
 (0)