-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (34 loc) · 956 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
37
38
39
40
name: publish
on:
push:
branches: [ develop ]
env:
DOTNET_VERSION: '9.0.100'
APP_NAME: Place.API
SOLUTION: Place.sln
API_PROJECT: src/Place.API/Place.API.csproj
jobs:
publish:
strategy:
matrix:
os: [macos-latest ]
include:
- os: macos-latest
runtime: osx-arm64
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
# Build and Test
- name: Restore dependencies
run: make restore SOLUTION=${{ env.SOLUTION }}
- name: Build solution
run: make build SOLUTION=${{ env.SOLUTION }}
# Publish binaries
- name: Publish x64
run: make publish RUNTIME=${{ matrix.runtime }} API_PROJECT=${{ env.API_PROJECT }} APP_NAME=${{ env.APP_NAME }}
env:
PUBLISH_OUTPUT: ./publish/arm64