This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (52 loc) · 1.69 KB
/
nightly.yaml
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
name: Nightly AASM Release
on:
push:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
build:
- name: Ark-Ascended-Server-Manager.exe
platform: windows/amd64
os: windows-latest
runs-on: ${{ matrix.build.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set direct proxy
run: go env -w GOPROXY=direct
- run: go install github.com/wailsapp/wails/cmd/wails@latest
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d')"
- name: Create api KEY file
run: echo "${{ secrets.API_TOKEN }}" > KEY
- name: Update wails.json
run: node build/updateConfig.js ${{ steps.date.outputs.date }}.${{ github.run_number }} true
- uses: dAppServer/[email protected]
with:
build-name: ${{ matrix.build.name }}
build-platform: ${{ matrix.build.platform }}
build: true
nsis: true
package: false
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: AASM Installer
path: build/bin/*.exe
- name: Upload Nightly Release
uses: andelf/nightly-release@main
with:
tag_name: nightly
name: 'Desktop App Nightly Release ${{ steps.date.outputs.date }}.${{ github.run_number }}'
prerelease: true
body: 'This is a nightly release of the AASM. Its unstable compared to the official releases, use it with caution!'
files: |
build/bin/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}