-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (39 loc) · 1.17 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
41
42
43
44
45
46
47
48
name: publish + artifact download
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
name: build on ubuntu
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: build project
run: dotnet publish
working-directory: ./dotnet-estimation
- name: Restore dependencies
run: dotnet restore
working-directory: ./dotnet-estimation
#create temporary folder
- run: mkdir ${{ github.workspace }}/package
working-directory: ./dotnet-estimation
#upload the build-artifact to the previously created folder
- uses: actions/[email protected]
with:
name: saved_artifact
path: ./dotnet-estimation
retention-days: 1
name: 'Upload Package'
#make it available to downloadoad on GH actions
- name: Download a Build Artifact
uses: actions/[email protected]
with:
path: ./dotnet-estimation/artifacts