-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (55 loc) · 1.92 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
64
name: Release 🚀
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*' # Match semantically versioned tags
jobs:
build-and-release:
name: Build and Release Network Console 📦
runs-on: ubuntu-latest
steps:
- name: Checkout code 🛎️
uses: actions/checkout@v4
- name: Set up Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Set Environment Variable 📋
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install Dependencies 📦
run: |
HUSKY=0 CYPRESS_RUN_BINARY=0 yarn install --ignore-optional --immutable --immutable-cache --check-cache --prefer-offline
- name: Build Project 🚧
run: |
yarn build
env:
CI: false
- name: Package Build 📦
run: |
cd build/ && tar -zcvf ../console.tgz --exclude='./data' .
- name: Create Draft Release ✨
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ env.RELEASE_VERSION }}
body: |
Skupper-console is available as a tar ball:
- console.tgz
Issues fixed in this release:
- https://github.com/skupperproject/skupper-console/issues?q=is:issue%20milestone:${{ env.RELEASE_VERSION }}
draft: true
- name: Upload Release Asset ⬆️
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./console.tgz
asset_name: console.tgz
asset_content_type: application/tar+gzip