-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
371 additions
and
3,256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
build: | ||
strategy: | ||
matrix: | ||
configuration: [Debug, Release] | ||
configuration: [Debug, Release, GithubRelease] # Added GithubRelease to the matrix | ||
|
||
runs-on: windows-latest | ||
|
||
|
@@ -35,12 +35,14 @@ jobs: | |
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Increment version number | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
id: increment_version | ||
run: | | ||
.\scripts\increment-version.ps1 -filePath ${{ env.Wap_Project_Path }} -solutionDir . -branch master # Updated to master | ||
.\scripts\increment-version.ps1 -filePath ${{ env.Wap_Project_Path }} -solutionDir . -branch master -msiFilePath ${{ env.Wap_Project_Directory }}\Release\DevModManagerInstaller.msi # Updated to master | ||
shell: pwsh | ||
|
||
- name: Commit new version | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
|
@@ -80,19 +82,22 @@ jobs: | |
path: ${{ env.Wap_Project_Directory }}\Release\DevModManagerInstaller.msi | ||
|
||
- name: Create source zip | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
run: | | ||
$version = "${{ steps.increment_version.outputs.newVersion }}" | ||
$zipPath = "DevModManager.src.$version.zip" | ||
Compress-Archive -Path * -DestinationPath $zipPath -Force -Exclude **\bin\*, **\obj\* | ||
shell: pwsh | ||
|
||
- name: Upload source zip | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Source Code | ||
path: DevModManager.src.${{ steps.increment_version.outputs.newVersion }}.zip | ||
|
||
- name: Create GitHub Release | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
|
@@ -102,8 +107,10 @@ jobs: | |
release_name: Release ${{ steps.increment_version.outputs.newVersion }} | ||
draft: false | ||
prerelease: false | ||
make_latest: true # Mark the release as the latest | ||
|
||
- name: Upload MSI to Release | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -114,6 +121,7 @@ jobs: | |
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Source Zip to Release | ||
if: matrix.configuration == 'GithubRelease' # Only run for GithubRelease configuration | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
<Application.Resources> | ||
<!-- Application resource dictionary --> | ||
</Application.Resources> | ||
|
||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.