Set up GitHub Actions

This commit is contained in:
Victor Tran 2021-05-02 22:15:01 +10:00
parent 753d7bbd94
commit 78a6ed265f
3 changed files with 54 additions and 0 deletions

29
.github/workflows/macos.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: CI
on:
push:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: "Install Dependencies"
run: >
brew install --cask dotnet-sdk
brew install nodejs
npm install -g appdmg
- name: "Build Project"
run: ./Distribution/build-macos.sh
- name: "Create Disk Image"
run: appdmg ./Distribution/app-dmg-spec.json ./FRESHMusicPlayer.dmg
- uses: actions/upload-artifact@v1
name: "Upload Artifact"
with:
name: "FRESHMusicPlayer.dmg"
path: "./FRESHMusicPlayer.dmg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,25 @@
{
"title": "FRESHMusicPlayer",
"background": "app-dmg-background.png",
"icon-size": 48,
"window": {
"size": {
"width": 600,
"height": 420
}
},
"contents": [
{
"x": 125,
"y": 225,
"type": "file",
"path": "FRESHMusicPlayer.app"
},
{
"x": 470,
"y": 225,
"type": "link",
"path": "/Applications"
}
]
}