-
Notifications
You must be signed in to change notification settings - Fork 11
60 lines (58 loc) · 1.78 KB
/
build-app.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
55
56
57
58
59
60
name: Build App
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Login
uses: azure/docker-login@v1
with:
login-server: docker.pkg.github.com
username: BeneSim
password: ${{ secrets.GITHUB_TOKEN }}
- name: Compile
run: |
mkdir build
docker container run --rm -v $(pwd):/app -w /app/build docker.pkg.github.com/benesim/beneoverlay/gcc-windows:latest -c "qmake .."
docker container run --rm -v $(pwd):/app -w /app/build docker.pkg.github.com/benesim/beneoverlay/gcc-windows:latest -c make
echo ${{ github.ref }}
- name: Package
run: |
cd build
zip BeneOverlay.zip BeneOverlay.exe
- name: Archive Artifact
uses: actions/upload-artifact@v1
with:
name: BeneOverlay
path: build/BeneOverlay.zip
release:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: BeneOverlay
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Assets
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./BeneOverlay/BeneOverlay.zip
asset_name: BeneOverlay_x86-64-windows.zip
asset_content_type: application/zip