From 2d8acff99f73f0fb7a24e80485c351eb8e3116a9 Mon Sep 17 00:00:00 2001 From: Yatima Santamorena Date: Wed, 15 May 2024 21:51:55 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49d2d04e..ddb9b765 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: Build +permissions: + contents: write + on: push: branches: [ "master" ] @@ -32,22 +35,23 @@ jobs: uses: actions/upload-artifact@v4 with: name: Drill_win-x64 - path: bin\Drill_win-x64.exe + path: bin/Drill_win-x64.exe if-no-files-found: error - name: Create a Release if: github.event_name == 'push' && github.ref == 'refs/heads/master' - uses: softprops/action-gh-release@v2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - name: Rolling Release - tag_name: latest - body: | - rolling release + artifacts: bin/Drill_win-x64.exe + artifactErrorsFailBuild: true draft: false prerelease: true - files: bin\Drill_win-x64.exe + makeLatest: true + name: "Latest Release" + tag: latest + updateOnlyUnreleased: true + allowUpdates: true + #- name: Build MAUI # run: dotnet publish --maxCpuCount -f net8.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None .\Drill\Drill.csproj