-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.33 KB
/
build-plugin-release.yaml
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
name: Build Plugin Release
on:
push:
tags:
- 1.*
env:
TAG: $(git describe --tags --abbrev=0)
jobs:
build:
name: Build NodeJS version
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: nodejs
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Create archive
run: cd dist && tar -czf ../helm-github_nodejs.tar.gz ./
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nodejs/helm-github_nodejs.tar.gz
asset_name: helm-github_nodejs.tar.gz
asset_content_type: application/x-tar