From 920e7e24ad5318b2437dcb56ab9b1a36193ff2ba Mon Sep 17 00:00:00 2001 From: hoyho Date: Thu, 16 May 2024 18:15:04 +1000 Subject: [PATCH] automation: setup github action template Signed-off-by: hoyho --- .github/workflows/pre-release.yaml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/pre-release.yaml diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml new file mode 100644 index 0000000..630bb96 --- /dev/null +++ b/.github/workflows/pre-release.yaml @@ -0,0 +1,37 @@ +--- +name: "pre-release" +on: + push: + branches: + - "master" +env: + DOTNET_VERSION: '8.0.x' +jobs: + pre-release: + name: "Pre Release" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Install dependencies + run: dotnet restore + + - name: "Build & test" + run: | + publish.sh + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + LICENSE + _output/*.app