Skip to content

Commit

Permalink
Prevent conflicting artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MattEqualsCoder committed Jun 27, 2024
1 parent e15bf35 commit d9b856a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
name: SMZ3CasRandomizer_${{ steps.version.outputs.number }}
build-mac:
runs-on: macos-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v4
- name: Download config repo
Expand All @@ -107,7 +108,6 @@ jobs:
- name: Publish
run: dotnet publish -r osx-arm64 --configuration Release -p:UseAppHost=true src/TrackerCouncil.Smz3.UI/TrackerCouncil.Smz3.UI.csproj
- name: Get version number
if: ${{ github.event_name != 'pull_request' }}
id: version
run: |
$version = (Get-Item "src\TrackerCouncil.Smz3.UI\bin\Release\net8.0\osx-arm64\publish\SMZ3CasRandomizer.dll").VersionInfo.ProductVersion
Expand All @@ -122,7 +122,6 @@ jobs:
./setup/package-macos-app.sh "${{ steps.version.outputs.number }}"
- name: Upload artifact
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'pull_request' }}
with:
path: "setup/output/*"
name: SMZ3CasRandomizer_${{ steps.version.outputs.number }}
name: SMZ3CasRandomizerMacOS_${{ steps.version.outputs.number }}
2 changes: 1 addition & 1 deletion setup/package-macos-app.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Define variables
APP_NAME="SMZ3CasRandomizer.app"
ZIP_FILE="SMZ3CasRandomizer_$1.zip"
ZIP_FILE="SMZ3CasRandomizerMacOS_$1.zip"
PUBLISH_OUTPUT_DIRECTORY="src/TrackerCouncil.Smz3.UI/bin/Release/net8.0/osx-arm64/publish"
INFO_PLIST="Info.plist"
ICON_FILE="SMZ3.icns"
Expand Down

0 comments on commit d9b856a

Please sign in to comment.