Skip to content

Merge pull request #18 from beat-forge/release-please--branches--main… #14

Merge pull request #18 from beat-forge/release-please--branches--main…

Merge pull request #18 from beat-forge/release-please--branches--main… #14

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
env:
GH_TOKEN: ${{ github.token }}
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Zip
run: Compress-Archive -Path .\GenericStripper\bin\Release\net7.0\* -DestinationPath GenericStripper.zip
- name: Publish to Release
run: gh release upload ${{ github.ref_name }} GenericStripper.zip --clobber