Skip to content

Update release.yml

Update release.yml #13

Workflow file for this run

on:
push:
tags:
- "v*.*.*"
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get Version
id: get_version
uses: battila7/get-version-action@v2
- name: Build package
run: |
curl -fsSL https://github.com/megastep/makeself/releases/download/release-2.5.0/makeself-2.5.0.run -o makeself.run
bash makeself.run --target makeself
mkdir tmp
cp -r install.sh bin gradle lib ./tmp
./makeself/makeself.sh --notemp --needroot ./tmp gng-installer.sh "GNG ${{ steps.get_version.outputs.version }}" ./install.sh
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: gng-installer.sh