Skip to content

Commit 730931c

Browse files
committed
Updated release.yml
1 parent c8b12d0 commit 730931c

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- "v*"
7+
- "*"
88

99
jobs:
1010
release:
@@ -13,8 +13,9 @@ jobs:
1313
steps:
1414
- name: Checkout Repository
1515
uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0
16+
- name: Get the version from the github tag ref
17+
id: get_version
18+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1819
- uses: actions/setup-node@v3
1920
with:
2021
node-version: 14.20.0
@@ -27,11 +28,7 @@ jobs:
2728
env:
2829
REACT_APP_BASE_API_URL: "/api/v1"
2930
REACT_APP_MOCKAPI_RESPONSE: false
30-
31-
- name: Get the version from the github tag ref
32-
id: get_version
33-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
34-
31+
REACT_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}
3532
- name: Generate Changelog
3633
uses: heinrichreimer/[email protected]
3734
with:
@@ -42,17 +39,15 @@ jobs:
4239
issuesWoLabels: "true"
4340
stripHeaders: "true"
4441
- name: Create release archive
45-
uses: a7ul/[email protected]
46-
id: compress
47-
with:
48-
command: c
49-
files: |
50-
./build
51-
outPath: zenml-dashboard.tar.gz
42+
run: |
43+
tar -zcf zenml-dashboard.tar.gz -C build --transform="s#\.\/##" .
44+
sha256sum -b zenml-dashboard.tar.gz > zenml-dashboard.tar.gz.sha256
5245
- name: Release to GitHub
5346
uses: softprops/action-gh-release@v1
5447
with:
55-
files: zenml-dashboard.tar.gz
48+
files: |
49+
zenml-dashboard.tar.gz
50+
zenml-dashboard.tar.gz.sha256
5651
body_path: ./CHANGELOG.md
5752
prerelease: "true"
5853
env:

0 commit comments

Comments
 (0)