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
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
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
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 :
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