Skip to content

Commit 3c60bbc

Browse files
Merge branch 'dev' into talha/feedback-fixes
2 parents 0454953 + 3ad71ec commit 3c60bbc

File tree

1 file changed

+54
-51
lines changed

1 file changed

+54
-51
lines changed

.github/workflows/release.yml

Lines changed: 54 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
1-
name: Release-pipeline
2-
3-
on:
4-
workflow_dispatch:
5-
push:
6-
tags:
7-
- "v*"
8-
9-
jobs:
10-
release:
11-
name: Release
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout Repository
15-
uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0
18-
- uses: actions/setup-node@v3
19-
with:
20-
node-version: 14.20.0
21-
- name: Install yarn
22-
run: npm install --global yarn
23-
- name: Build
24-
run: |
25-
yarn install
26-
yarn build
27-
env:
28-
REACT_APP_BASE_API_URL: "/api/v1"
29-
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-
35-
- name: Generate Changelog
36-
uses: heinrichreimer/[email protected]
37-
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
39-
pullRequests: "false"
40-
onlyLastTag: "true"
41-
stripGeneratorNotice: "true"
42-
issuesWoLabels: "true"
43-
stripHeaders: "true"
44-
- name: Release to GitHub
45-
uses: softprops/action-gh-release@v1
46-
with:
47-
files: ./build/*
48-
body_path: ./CHANGELOG.md
49-
prerelease: "true"
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
name: Release-pipeline
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*"
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v2
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\//}
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 14.20.0
22+
- name: Install yarn
23+
run: npm install --global yarn
24+
- name: Build
25+
run: |
26+
yarn install
27+
yarn build
28+
env:
29+
REACT_APP_BASE_API_URL: "/api/v1"
30+
REACT_APP_MOCKAPI_RESPONSE: false
31+
REACT_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}
32+
- name: Generate Changelog
33+
uses: heinrichreimer/[email protected]
34+
with:
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
pullRequests: "false"
37+
onlyLastTag: "true"
38+
stripGeneratorNotice: "true"
39+
issuesWoLabels: "true"
40+
stripHeaders: "true"
41+
- name: Create release archive
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
45+
- name: Release to GitHub
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
files: |
49+
zenml-dashboard.tar.gz
50+
zenml-dashboard.tar.gz.sha256
51+
body_path: ./CHANGELOG.md
52+
prerelease: "true"
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)