@@ -18,15 +18,12 @@ jobs:
1818 with :
1919 fetch-depth : 0 # fetch-depth is needed for GitVersion
2020
21- - name : Set version variable
22- run : echo "VERSION=${{ inputs.rel_version }}" >> $GITHUB_ENV # Extract version from the tag
23-
2421 - name : Create Branch
2522 uses : peterjgrainger/action-create-branch@v2.2.0
2623 env :
2724 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
2825 with :
29- branch : ' release-${{ env.VERSION }}'
26+ branch : ' release-${{ inputs.rel_version }}'
3027 sha : ' ${{ github.event.pull_request.head.sha }}'
3128
3229 - name : Setup .NET
@@ -38,22 +35,22 @@ jobs:
3835 run : dotnet restore
3936
4037 - name : Build
41- run : dotnet build --configuration Release /p:Version='${{ env.VERSION }}' --no-restore
38+ run : dotnet build --configuration Release /p:Version='${{ inputs.rel_version }}' --no-restore
4239
4340 - name : Test
44- run : dotnet test --configuration Release /p:Version='${{ env.VERSION }}' --no-build
41+ run : dotnet test --configuration Release /p:Version='${{ inputs.rel_version }}' --no-build
4542
4643 - name : Publish project
4744 run : dotnet publish -c Release -o ./publish
4845
4946 - name : Zip the output files
5047 run : |
5148 mkdir -p "${{github.workspace}}/dist"
52- zip -r "${{github.workspace}}/dist/release-${{ env.VERSION }}.zip" ./publish
49+ zip -r "${{github.workspace}}/dist/release-${{ inputs.rel_version }}.zip" ./publish
5350
5451 - name : Generate SHA256 checksum for the zip file
5552 run : |
56- sha256sum "${{github.workspace}}/dist/release-${{ env.VERSION }}.zip" > "${{github.workspace}}/dist/release-${{ env.VERSION }}.zip.sha256"
53+ sha256sum "${{github.workspace}}/dist/release-${{ inputs.rel_version }}.zip" > "${{github.workspace}}/dist/release-${{ inputs.rel_version }}.zip.sha256"
5754
5855 - name : Upload bineries
5956 uses : actions/upload-artifact@v4
@@ -74,10 +71,10 @@ jobs:
7471 - name : Create GitHub Release
7572 uses : ncipollo/release-action@v1
7673 with :
77- tag : v${{ env.VERSION }}
78- name : Amazon S3 Plugin v${{ env.VERSION }}
74+ tag : v${{ inputs.rel_version }}
75+ name : Amazon S3 Plugin v${{ inputs.rel_version }}
7976 artifacts : |
80- ./downloaded-artifacts/release-${{ env.VERSION }}.zip
81- ./downloaded-artifacts/release-${{ env.VERSION }}.zip.sha256
82- body : " This is the v${{ env.VERSION }} release of Amazon S3 Storage for FlowSynx System."
77+ ./downloaded-artifacts/release-${{ inputs.rel_version }}.zip
78+ ./downloaded-artifacts/release-${{ inputs.rel_version }}.zip.sha256
79+ body : " This is the v${{ inputs.rel_version }} release of Amazon S3 Storage for FlowSynx System."
8380 token : ${{ secrets.GH_TOKEN }}
0 commit comments