bump version #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release from tag | |
on: | |
push: | |
tags: | |
- '\d+\.\d+\.\d+\.\d+' | |
jobs: | |
upload: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: "6.x" # Change this to the desired .NET version | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build and publish | |
run: dotnet publish -c Release --self-contained --runtime win-x64 -p:PublishSingleFile=true /property:Version=${{ github.ref_name }} | |
- name: Creare Build Release Archive | |
shell: pwsh | |
run: | | |
cd TarkovMonitor/bin/Release/net6.0-windows/win-x64/publish | |
Compress-Archive -Destination $Env:GITHUB_WORKSPACE/TarkovMonitor.zip -Path .\* | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: TarkovMonitor.zip | |
prerelease: true | |
fail_on_unmatched_files: true | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |