@@ -41,17 +41,13 @@ jobs:
4141 run : dotnet test --configuration Release /p:Version='${{ inputs.rel_version }}' --no-build
4242
4343 - name : Publish project
44- run : dotnet publish -c Release -o ./publish
44+ run : dotnet publish src/FlowSynx.Plugins.Amazon.S3.csproj -c Release -o ./publish
4545
4646 - name : Zip the output files
4747 run : |
4848 mkdir -p "${{github.workspace}}/dist"
4949 zip -r "${{github.workspace}}/dist/release-${{ inputs.rel_version }}.zip" ./publish
5050
51- - name : Generate SHA256 checksum for the zip file
52- run : |
53- sha256sum "${{github.workspace}}/dist/release-${{ inputs.rel_version }}.zip" > "${{github.workspace}}/dist/release-${{ inputs.rel_version }}.zip.sha256"
54-
5551 - name : Upload bineries
5652 uses : actions/upload-artifact@v4
5753 with :
@@ -61,20 +57,24 @@ jobs:
6157 release :
6258 runs-on : ubuntu-latest
6359 needs : build
60+ if : github.ref == 'refs/heads/master' # only run job if on the master branch
61+ env :
62+ ARTIFACT_DIR : ./downloaded-artifacts
6463 steps :
6564 - name : Download artifacts
6665 uses : actions/download-artifact@v4
6766 with :
6867 name : uploaded-artifacts
69- path : ./downloaded-artifacts
68+ path : ${{ env.ARTIFACT_DIR }}
7069
70+ - name : generate checksum files
71+ run : cd ${ARTIFACT_DIR} && for i in *; do sha256sum -b $i > "$i.sha256"; done && cd -
72+
7173 - name : Create GitHub Release
7274 uses : ncipollo/release-action@v1
7375 with :
7476 tag : v${{ inputs.rel_version }}
7577 name : Amazon S3 Plugin v${{ inputs.rel_version }}
76- artifacts : |
77- ./downloaded-artifacts/release-${{ inputs.rel_version }}.zip
78- ./downloaded-artifacts/release-${{ inputs.rel_version }}.zip.sha256
78+ artifacts : " **/*.*"
7979 body : " This is the v${{ inputs.rel_version }} release of Amazon S3 Storage for FlowSynx System."
8080 token : ${{ secrets.GH_TOKEN }}
0 commit comments