-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (53 loc) · 2.25 KB
/
Copy pathcreate_release.yml
File metadata and controls
65 lines (53 loc) · 2.25 KB
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
65
name: Releases
on:
push:
branches: ['5.2']
paths: ['RELEASE_VERSION']
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
permissions:
contents: write
steps:
- name: "Checkout source code"
uses: actions/checkout@v3
- name: Read the RELEASE_VERSION file
id: getversion
run: echo "version=$(cat RELEASE_VERSION)" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install library deps
working-directory: ./CarConfigurator
run: npm ci
- name: Build frontend lib
working-directory: ./CarConfigurator
run: npm run build-all
- name: Move all content into output directory for archiving
run: items=(./CarConfigurator/dist/www/*) && mkdir TensorConfiguratorFrontend-${{ github.ref_name }}-${{ steps.getversion.outputs.version }} && mv ${items[*]} TensorConfiguratorFrontend-${{ github.ref_name }}-${{ steps.getversion.outputs.version }}/
- name: Archive Release tar.gz
uses: thedoctor0/zip-release@0.7.1
with:
directory: '.'
path: 'TensorConfiguratorFrontend-${{ github.ref_name }}-${{ steps.getversion.outputs.version }}'
type: 'tar'
filename: '${{ steps.getversion.outputs.version }}-${{ github.ref_name }}-${{ github.event.repository.name }}.tar.gz'
exclusions: ''
- name: Archive Release .zip
uses: thedoctor0/zip-release@0.7.1
with:
directory: '.'
path: 'TensorConfiguratorFrontend-${{ github.ref_name }}-${{ steps.getversion.outputs.version }}'
type: 'zip'
filename: '${{ steps.getversion.outputs.version }}-${{ github.ref_name }}-${{ github.event.repository.name }}.zip'
exclusions: ''
- name: "Make the release"
uses: ncipollo/release-action@v1
with:
tag: "${{ steps.getversion.outputs.version }}-${{ github.ref_name }}-${{ github.event.repository.name }}"
artifacts: "${{ steps.getversion.outputs.version }}-${{ github.ref_name }}-${{ github.event.repository.name }}.zip,${{ steps.getversion.outputs.version }}-${{ github.ref_name }}-${{ github.event.repository.name }}.tar.gz"
generateReleaseNotes: true