Skip to content

Commit

Permalink
Do not build on PRs; rename release name
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatecompvir authored Dec 30, 2024
1 parent 75b3756 commit b63be2a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand All @@ -31,18 +29,18 @@ jobs:

- name: Create Zip Archive
run: |
Compress-Archive -Path publish/* -DestinationPath release.zip
Compress-Archive -Path publish/* -DestinationPath MiloEditor.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly-${{ github.run_number }}
release_name: Nightly Build ${{ github.run_number }}
tag_name: continuous-${{ github.run_number }}
release_name: Continuous Build ${{ github.run_number }}
body: |
Nightly build generated from commit ${{ github.sha }}
Build automatically generated from commit ${{ github.sha }}. This build may have bugs and/or corrupt Milo scenes - use with caution.
draft: false
prerelease: true # make it a pre-release

Expand All @@ -53,6 +51,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release.zip
asset_name: release.zip
asset_path: MiloEditor.zip
asset_name: MiloEditor.zip
asset_content_type: application/zip

0 comments on commit b63be2a

Please sign in to comment.