Merge pull request #465 from TheJoeFin/Grab-Frame-Tweaks #72
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
name: "Build Text Grab" | |
on: | |
push: | |
branches: [dev] | |
env: | |
PROJECT_PATH: "Text-Grab/Text-Grab.csproj" | |
TEST_PATH: "Tests/Tests.csproj" | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Install dependencies | |
run: dotnet restore ${{ env.PROJECT_PATH }} | |
- name: Build | |
run: dotnet build ${{ env.PROJECT_PATH }} | |
- name: Test | |
run: dotnet test ${{ env.TEST_PATH }} | |
- name: Build for release and Publish | |
run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --self-contained -r win-x64 -p:PublishSingleFile=true -o publish | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Text-Grab | |
path: .\publish |