.github/workflows/release.yml #11
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
on: workflow_dispatch | |
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.4.3/makeself-2.4.3.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 | |
with: | |
files: gng-installer.sh | |