-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.07 KB
/
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
37
38
39
40
name: Publish
on:
workflow_dispatch:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Get Version
uses: kzrnm/[email protected]
id: get-version
with:
proj-path: src/OneWare.NetlistSvg/OneWare.NetlistSvg.csproj
- name: Build
run: dotnet build src/OneWare.NetlistSvg/OneWare.NetlistSvg.csproj -c Release -o publish
- name: Compress
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: ../OneWare_NetlistSvgExtension_${{steps.get-version.outputs.version}}_all.zip
directory: ./publish
- name: Debug
run: ls
- uses: ncipollo/[email protected]
with:
artifacts: "OneWare_NetlistSvgExtension_${{steps.get-version.outputs.version}}_all.zip"
tag: ${{steps.get-version.outputs.version}}
allowUpdates: true