Skip to content

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

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

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

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: 7z a -tzip -mx=9 GenericStripper.zip GenericStripper/bin/Release/net7.0/
- name: Publish to Release
run: gh release upload ${{ github.ref }} GenericStripper.zip --clobber