Skip to content

Update to net8.0 and rename to LockChecker #4

Update to net8.0 and rename to LockChecker

Update to net8.0 and rename to LockChecker #4

Workflow file for this run

name: release
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
release:
name: ${{ matrix.target }}
permissions:
contents: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Directory structure
run: |
ls
- name: Dotnet Installation Info
run: dotnet --info
- name: Build
run: dotnet build -c release
- name: Create release
if: ${{ github.ref == 'refs/heads/main' }}
uses: softprops/action-gh-release@v1
with:
draft: true
name: "${{ steps.get_version.outputs.version }}"
files: ForceOps/bin/Release/net8.0/win-x64/publish/ForceOps.exe
tag_name: "${{ steps.get_version.outputs.version }}"
- name: Publish NuGet
if: ${{ github.ref == 'refs/heads/main' }}
run: |
dotnet nuget push -k ${{ secrets.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json LockCheck/bin/Release/*.nupkg --skip-duplicate