-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.1 KB
/
OpenTTE.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
name: OpenTTE
on: [push, pull_request]
jobs:
Build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Dependencies
run: python3 --version && pip3 install setuptools pip && pip3 install nml
- name: Build
run: python3 build.py --compile OpenTTE
- name: Artifact
uses: actions/upload-artifact@v2
with:
name: OpenTTE
path: build/OpenTTE.*
if-no-files-found: error
- name: Release Create
id: release_create
uses: actions/create-release@v1
with:
tag_name: development.${{ github.run_id }}
release_name: PreRelease development.${{ github.run_id }}
prerelease: true
- name: Release Upload
id: release_upload
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release_create.outputs.upload_url }}
asset_path: build/OpenTTE.grf
asset_name: OpenTTE-development.grf
asset_content_type: application/grf