-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1.17 KB
/
release_build_and_deploy.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
name: 'Build and Deploy'
on:
workflow_dispatch:
env:
VERSION: 1.0.${{ github.run_number }}
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: 1. Versioning Release
run: |
sed -i -e 's/1.0/${{ env.VERSION }}/g' ./AddinInfo.cs
cat ./AddinInfo.cs
working-directory: src/CodingWithCalvin.SuperClean
- name: 2. Restoring Packages
run: dotnet restore src/CodingWithCalvin.SuperClean.sln
- name: 4. Building
run: /Applications/Visual\ Studio.app/Contents/MacOS/vstool build --configuration:Release ${{ github.workspace }}/src/CodingWithCalvin.SuperClean.sln
- name: 5. Packing
run: /Applications/Visual\ Studio.app/Contents/MacOS/vstool setup pack ${{ github.workspace }}/src/CodingWithCalvin.SuperClean/bin/Release/net7.0/CodingWithCalvin.SuperClean.dll -d:${{ github.workspace }}/src
- name: 6. Create Tag & Release
uses: ncipollo/release-action@v1.14.0
with:
artifacts: ./src/*.mpack
generateReleaseNotes: true
makeLatest: true
token: ${{ secrets.GH_SECRET }}
commit: ${{ github.sha }}
tag: ${{ env.VERSION }}