-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.11 KB
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: .NET
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: DJMapHelper
path: bin/Release/net452
- name: Archive Release
if: startsWith(github.ref, 'refs/tags/')
uses: thedoctor0/zip-release@master
with:
filename: DJMapHelper.zip
directory: bin/Release/net452/
- name: Release
uses: marvinpinto/action-automatic-releases@latest
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: bin/Release/net452/DJMapHelper.zip
automatic_release_tag: latest