Merge pull request #6 from koplo199/patch-1 #24
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-runtime | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Fetching Build Tools | |
working-directory: /home/runner/work/ | |
run: git clone https://github.com/bottlesdevs/build-tools.git | |
- name: Make build scripts executable | |
working-directory: /home/runner/work/build-tools/runtime | |
run: chmod +x * | |
- name: Launch environment.sh | |
working-directory: /home/runner/work/build-tools/runtime | |
run: ./environment.sh | |
- name: Launch build.sh | |
working-directory: /home/runner/work/build-tools/runtime | |
run: ./build.sh | |
- name: Get release version | |
working-directory: /home/runner/work/runtime/runtime | |
id: vars | |
run: | | |
version=$(cat VERSION) | |
echo "::set-output name=release_version::${version}" | |
- name: Rename runtime archive | |
working-directory: /home/runner | |
run: | | |
mv "runtime.tar.gz" "runtime-${{ steps.vars.outputs.release_version }}.tar.gz" | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
draft: false | |
prerelease: false | |
automatic_release_tag: "${{ steps.vars.outputs.release_version }}" | |
title: "${{ steps.vars.outputs.release_version }}" | |
files: "/home/runner/runtime-${{ steps.vars.outputs.release_version }}.tar.gz" | |
- name: Upload log.txt | |
uses: actions/upload-artifact@v2 | |
with: | |
name: log.txt | |
path: /home/runner/work/build-tools/runtime/runtimezilla/log.txt | |