Skip to content

Commit 3bee3d8

Browse files
committed
Add archiving to release workflow
1 parent 0dc6186 commit 3bee3d8

File tree

1 file changed

+59
-51
lines changed

1 file changed

+59
-51
lines changed

.github/workflows/release.yml

Lines changed: 59 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,59 @@
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+
- "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: 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
52+
- name: Release to GitHub
53+
uses: softprops/action-gh-release@v1
54+
with:
55+
files: zenml-dashboard.tar.gz
56+
body_path: ./CHANGELOG.md
57+
prerelease: "true"
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)