-
Notifications
You must be signed in to change notification settings - Fork 6
111 lines (111 loc) · 4.15 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Create Release
on:
push:
tags:
- "v*"
jobs:
create-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
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install and Build
run: |
bun i
cd client && bun run build && bun run package
- name: Build adapter (Filesystem Sync)
run: |
cd adapter-fs-bridge && bun i && bun run build && zip -r dist.zip dist
- name: Build adapter (Iron Harvest)
run: |
cd adapter-iron-harvest && bun i && bun run build && zip -r dist.zip dist
- name: Build adapter (Warthog Websocket)
run: |
cd adapter-warthog-websocket && bun i && bun run build && zip -r dist.zip dist
- name: Create release
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/Posthoc-darwin-arm64.zip
asset_name: Posthoc-darwin-arm64.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/Posthoc-darwin-x64.zip
asset_name: Posthoc-darwin-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/Posthoc-linux-x64.zip
asset_name: Posthoc-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/Posthoc-win32-x64.zip
asset_name: Posthoc-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