Skip to content

Commit 8e892a1

Browse files
committed
Final version of the release workflow
1 parent 2d967ff commit 8e892a1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
steps:
1414
- name: Checkout Repository
1515
uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0
1816
- uses: actions/setup-node@v3
1917
with:
2018
node-version: 14.20.0
@@ -28,11 +26,6 @@ jobs:
2826
REACT_APP_BASE_API_URL: "/api/v1"
2927
REACT_APP_MOCKAPI_RESPONSE: false
3028
REACT_APP_VERSION: ${{ github.ref }}
31-
32-
- name: Get the version from the github tag ref
33-
id: get_version
34-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
35-
3629
- name: Generate Changelog
3730
uses: heinrichreimer/[email protected]
3831
with:
@@ -43,11 +36,15 @@ jobs:
4336
issuesWoLabels: "true"
4437
stripHeaders: "true"
4538
- name: Create release archive
46-
run: tar -zcf zenml-dashboard.tar.gz -C build --transform="s#\.\/##" .
39+
run: |
40+
tar -zcf zenml-dashboard.tar.gz -C build --transform="s#\.\/##" .
41+
sha256sum -b zenml-dashboard.tar.gz > zenml-dashboard.tar.gz.sha256
4742
- name: Release to GitHub
4843
uses: softprops/action-gh-release@v1
4944
with:
50-
files: zenml-dashboard.tar.gz
45+
files: |
46+
zenml-dashboard.tar.gz
47+
zenml-dashboard.tar.gz.sha256
5148
body_path: ./CHANGELOG.md
5249
prerelease: "true"
5350
env:

0 commit comments

Comments
 (0)