Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from JensvandeWiel/32-add-pull-request-workflo…
Browse files Browse the repository at this point in the history
…w-and-nightly-release-workflow

added build and nightly workflows
  • Loading branch information
August2211 authored Oct 30, 2023
2 parents af4d0ea + 7526d4a commit a1fea6c
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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
- 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 ${{ 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 }}
37 changes: 37 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: AASM Pull Request Build

on:
pull_request:
types:
- opened
- synchronize

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
- 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 Artifacts
path: build/bin/*.exe

0 comments on commit a1fea6c

Please sign in to comment.