-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (54 loc) · 1.67 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Release-pipeline
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get the version from the github tag ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Build new dashboard
run: |
pnpm install --frozen-lockfile
pnpm build
env:
VITE_API_BASE_URL: "/api/v1"
VITE_FRONTEND_VERSION: ${{ steps.get_version.outputs.VERSION }}
VITE_FEATURE_OS_KEY: ${{ secrets.FEATURE_OS_KEY }}
- name: Generate Changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
pullRequests: "false"
onlyLastTag: "true"
stripGeneratorNotice: "true"
issuesWoLabels: "true"
stripHeaders: "true"
- name: Create release archive
run: |
tar -zcf zenml-dashboard.tar.gz -C dist --transform="s#\.\/##" .
sha256sum -b zenml-dashboard.tar.gz > zenml-dashboard.tar.gz.sha256
- name: Release to GitHub
uses: softprops/action-gh-release@v1
with:
files: |
zenml-dashboard.tar.gz
zenml-dashboard.tar.gz.sha256
body_path: ./CHANGELOG.md
prerelease: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}