Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhxiao authored May 11, 2024
1 parent d4f1252 commit 705ebfb
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,34 @@ jobs:
runs-on: windows-latest

steps:

- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x


# get short commit hash
- name: Get Commit short hash
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
shell: bash

- name: Restore dependencies
run: dotnet restore

- name: Build
- name: Restore dependencies and build
run: |
dotnet restore
dotnet publish /p:OutputType=WinExe
ls ./bin/Release
# cp -r ./glossaries ./db "changelog.md"
- name: Create Artifact
run: |
cp -r ./glossaries ./db changelog.md oo2core_6_win64.dll ./bin/Release/net7.0-windows/publish
shell: bash

- uses: actions/upload-artifact@v4
with:
name: SoulsModTranslator-${{steps.vars.outputs.sha_short}}.zip
path: ./bin/Release/net7.0-windows/publish




0 comments on commit 705ebfb

Please sign in to comment.