-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.52 KB
/
microservices-pdfs.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
49
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: microservices pdfs
permissions:
contents: write
on:
# Triggers the workflow on push or pull request events but only for the master branch
#push:
#branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
push:
tags:
- "v*-mp"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Remove Frontend.Web (speedup)
run: dotnet sln remove OneShelf.Frontend/OneShelf.Frontend.Web
- name: Remove Frontend.Web.Tests (speedup)
run: dotnet sln remove OneShelf.Frontend/OneShelf.Frontend.Web.Tests
- name: Restore dependencies
run: dotnet restore OneShelf.Pdfs/OneShelf.Pdfs.Api/OneShelf.Pdfs.Api.csproj
# - name: Build
# run: dotnet build --no-restore --configuration Release
- name: Publish 8
run: dotnet publish OneShelf.Pdfs/OneShelf.Pdfs.Api/OneShelf.Pdfs.Api.csproj --no-restore --configuration Release
- run: Compress-Archive -Path OneShelf.Pdfs/OneShelf.Pdfs.Api/bin/Release/net6.0/publish/* -Destination OneShelf.Pdfs.Api.zip
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
LICENSE
*.zip