Skip to content

Commit

Permalink
Name artifact according to sniffer version
Browse files Browse the repository at this point in the history
  • Loading branch information
kokolihapihvi committed Oct 7, 2023
1 parent 1b2ed82 commit dbe16ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
id: build
run: |
echo "SNIFFER_VERSION=$(sed -nr 's/^.*const string version.*"(.*)".*$/\1/pi' ./RockSniffer/Program.cs)" >> "$GITHUB_ENV"
echo "Sniffer version: $SNIFFER_VERSION"
VERSION=$(sed -nr 's/^.*const string version.*"(.*)".*$/\1/pi' ./RockSniffer/Program.cs)
echo "Sniffer version: $VERSION"
echo "SNIFFER_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
dotnet build --configuration Release --no-restore
- name: Publish
run: |
dotnet publish RockSniffer -c Release -o ./publish --runtime win-x64 --framework=net6.0-windows --self-contained false -p:PublishSingleFile=true
cp -r ./addons ./publish/addons
- uses: actions/upload-artifact@v3
with:
name: publish
name: RockSniffer ${{ steps.build.outputs.SNIFFER_VERSION }}
path: ./publish

0 comments on commit dbe16ce

Please sign in to comment.