Skip to content

Update artifact.yml #18

Update artifact.yml

Update artifact.yml #18

Workflow file for this run

name: dotnet package
permissions: write-all
on:
push:
branches:
[main]
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet: ["6.x"]
steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: |
dotnet add package Serilog.Sinks.Console
dotnet add package System.CommandLine
dotnet add package System.Security.Cryptography.ProtectedData
dotnet add package ini-parser
- name: Display dotnet version
run: dotnet --version
- name: Dotnet publish
run: dotnet publish -c Release
- name: Upload release asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
bin/Release/publish/MobaXtermDecryptor.exe