-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (45 loc) · 1.68 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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