Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yatima1460 committed May 15, 2024
1 parent a5bf01d commit 2d8acff
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build

permissions:
contents: write

on:
push:
branches: [ "master" ]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d8acff

Please sign in to comment.