version 1.3.4 #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |