-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 970 Bytes
/
publish.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
name: Publish Release
on:
workflow_dispatch:
push:
branches: [ release ]
paths-ignore:
- .github/workflows/*
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'plugin.json'
prop_path: 'Version'
- run: echo ${{steps.version.outputs.prop}}
- name: Build
run: |
dotnet publish 'Dictionary.csproj' -c Release -o "Dictionary" -r win-x64
7z a -tzip "Dictionary.zip" "Dictionary/*"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "Dictionary.zip"
tag_name: "v${{steps.version.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}