Skip to content

Bump version to 0.8.2 #22

Bump version to 0.8.2

Bump version to 0.8.2 #22

Workflow file for this run

on:
push:
tags:
- "v*"
name: Create Release
jobs:
build:
name: Create Release
runs-on: [self-hosted, docker]
container: node:14
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate Versionfile
run: |
cat >> VERSION << EOF
GITHUB_REPOSITORY: ${GITHUB_REPOSITORY}
GITHUB_SHA: ${GITHUB_SHA}
GITHUB_REF: ${GITHUB_REF}
BUILD_DATE: `date +"%Y/%m/%d %H:%M:%S"`
EOF
- name: Package Build
run: |
npm install
npm run build && npm run pack
- name: Generate Release Archive
run: |
REPONAME=${GITHUB_REPOSITORY##*/}
mkdir ${REPONAME}
cp -a VERSION action.yml dist ${REPONAME}
tar -czvf dist.tar.gz ${REPONAME}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- 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: ./dist.tar.gz
asset_name: dist.tar.gz
asset_content_type: application/gzip