-
Notifications
You must be signed in to change notification settings - Fork 6
90 lines (90 loc) · 3.32 KB
/
release.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Create Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
env:
CI: false
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Wine
run: |
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
- name: Build Client
run: |
npm install
cd client && npm run build && npm run package
- name: Build Adapter FS Bridge
run: |
cd adapter-fs-bridge && npm i && npm run build && zip -r dist.zip dist
- name: Build Adapter Iron Harvest
run: |
cd adapter-iron-harvest && npm i && npm run build && zip -r dist.zip dist
- name: Build Adapter Warthog Websocket
run: |
cd adapter-warthog-websocket && npm i && npm run build && zip -r dist.zip dist
- name: Deploy
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
No release notes.
draft: true
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./client/bin/Visualiser-linux-x64.zip
asset_name: Visualiser-linux-x64.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./client/bin/Visualiser-win32-x64.zip
asset_name: Visualiser-win32-x64.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./adapter-fs-bridge/dist.zip
asset_name: adapter-fs-bridge.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./adapter-iron-harvest/dist.zip
asset_name: adapter-iron-harvest.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./adapter-warthog-websocket/dist.zip
asset_name: adapter-warthog-websocket.zip
asset_content_type: application/zip