Skip to content

Test fix

Test fix #38

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish -c Release
- name: Zip Release files
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'Release.zip'
directory: "${{ github.workspace }}/HeistItemFinder/bin/Release/net7.0-windows/publish"
- name: lsBin
run: |
ls "${{ github.workspace }}\HeistItemFinder\bin\"
- name: ls
run: |
ls "${{ github.workspace }}\HeistItemFinder\bin\Release\net7.0-windows"
- name: lsPublish
run: |
ls "${{ github.workspace }}\HeistItemFinder\bin\Release\net7.0-windows\publish"
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
D:/a/HeistItemFinder/HeistItemFinder/HeistItemFinder/bin/Release/net7.0-windows/publish/Release.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}