From 99e69273ced5e3f410a6d42b9179ac74b051ccf2 Mon Sep 17 00:00:00 2001 From: hoyho Date: Thu, 13 Jun 2024 15:58:14 +1000 Subject: [PATCH] bugfix: incorrect branch for automation Signed-off-by: hoyho --- .github/workflows/pre-release.yaml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 630bb96..45857af 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -3,7 +3,7 @@ name: "pre-release" on: push: branches: - - "master" + - "main" env: DOTNET_VERSION: '8.0.x' jobs: @@ -24,14 +24,16 @@ jobs: - name: "Build & test" run: | - publish.sh - - - uses: "marvinpinto/action-automatic-releases@latest" + mkdir -p _output + dotnet publish iTimeSlot.csproj -o _out -c Release -f net8.0 --self-contained true -t:BundleApp + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false prerelease: true - title: "Development Build" - files: | - LICENSE - _output/*.app