Skip to content

Add a step to make experimental pre-release to CI #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: CI
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- ".github/**"
- ".gitignore"
- "*.md"

jobs:
build:
runs-on: windows-latest
permissions:
contents: write

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down Expand Up @@ -37,5 +44,34 @@ jobs:
- name: Restore packages
run: nuget restore UAssetGUI.sln

- name: Build
- name: Build All
run: msbuild UAssetGUI.sln /p:Configuration=Release

- name: Build Publish Binary
run: dotnet publish --sc false -c Release -r win-x64 -p:PublishSingleFile=true -o ./build ./UAssetGUI/UAssetGUI.csproj
Copy link
Contributor Author

@nozwock nozwock Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if this is unnecessary, that we could just use the executable from the Build All step instead.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the correct way to build uassetgui for distribution


- name: Get Short SHA
id: vars
shell: bash
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Get Project Version
uses: bbonkr/get-version-action@v1
id: get_version
with:
project: './UAssetGUI/UAssetGUI.csproj'
show_log_message: true

- name: Upload Build Artifact
uses: actions/[email protected]
with:
name: UAssetGUI-${{ steps.get_version.outputs.version }}-${{ steps.vars.outputs.sha_short }}
path: ./build/*.exe

- name: Make Experimental Pre-Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
tag_name: experimental-latest
name: UAssetGUI-${{ steps.get_version.outputs.version }}-${{ steps.vars.outputs.sha_short }}
files: ./build/*.exe