Skip to content

Bump SharpZipLib from 1.2.0 to 1.3.3 in /MapDownloader (#9) #5

Bump SharpZipLib from 1.2.0 to 1.3.3 in /MapDownloader (#9)

Bump SharpZipLib from 1.2.0 to 1.3.3 in /MapDownloader (#9) #5

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'maps.csv'
- 'servers.json'
branches:
- master
tags:
- '*'
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'maps.csv'
- 'servers.json'
jobs:
Build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
- name: Prepare artifacts
run: |
robocopy MapDownloader\bin\Release\netcoreapp3.1\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 }}