Skip to content

Commit 52c36d7

Browse files
authored
Update release.yml
1 parent 3eff936 commit 52c36d7

1 file changed

Lines changed: 32 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,38 @@ jobs:
4646
- name: Publish project
4747
run: dotnet publish -c Release -o ./publish
4848

49-
- name: Zip release and calculate SHA256 checksum
49+
- name: Zip the output files
5050
run: |
51-
mkdir -p dist
52-
zip -r "dist/release-${{ env.VERSION }}.zip" ./publish
53-
sha256sum dist/release-${{ env.VERSION }}.zip > dist/release-${{ env.VERSION }}.zip.sha256
51+
mkdir -p "${{github.workspace}}/dist"
52+
zip -r "${{github.workspace}}/dist/release-${{ env.VERSION }}.zip" ./publish
5453
55-
- name: Create GitHub Release and Upload Artifacts
56-
uses: ncipollo/release-action@v1
54+
- name: Generate SHA256 checksum for the zip file
55+
run: |
56+
sha256sum "${{github.workspace}}/dist/release-${{ env.VERSION }}.zip" > "${{github.workspace}}/dist/release-${{ env.VERSION }}.zip.sha256"
57+
58+
- name: Upload bineries
59+
uses: actions/upload-artifact@v4
5760
with:
58-
tag: v${{ env.VERSION }}
59-
name: Amazon S3 Plugin v${{ env.VERSION }}
60-
artifacts: |
61-
"dist/*.zip"
62-
"dist/*.zip.sha256"
63-
body: "This is the v${{ env.VERSION }} release of Amazon S3 Storage for FlowSynx System."
64-
token: ${{ secrets.GH_TOKEN }}
61+
name: uploaded-artifacts
62+
path: "${{github.workspace}}/dist"
63+
64+
release:
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
68+
- name: Download artifacts
69+
uses: actions/download-artifact@v4
70+
with:
71+
name: uploaded-artifacts
72+
path: ./downloaded-artifacts
73+
74+
- name: Create GitHub Release
75+
uses: ncipollo/release-action@v1
76+
with:
77+
tag: v${{ env.VERSION }}
78+
name: Amazon S3 Plugin v${{ env.VERSION }}
79+
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."
83+
token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)