Skip to content

Merge pull request #3 from NiDE-gg/cmer81-patch-1 #6

Merge pull request #3 from NiDE-gg/cmer81-patch-1

Merge pull request #3 from NiDE-gg/cmer81-patch-1 #6

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'maps.csv'
branches:
- master
tags:
- '*'
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'maps.csv'
jobs:
Build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
dotnet-quality: 'ga'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish -c Release
- name: Prepare artifacts
run: |
robocopy MapDownloader\bin\Release\net7.0-windows\win-x64\publish\ artifacts MapDownloader.exe /r:0 /w:0
If ($LastExitCode -le 7) { $LastExitCode = 0 }
- uses: actions/upload-artifact@v3
with:
name: Release
path: artifacts
Release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
needs: Build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'Release/MapDownloader.exe'
tag: ${{ github.ref }}