-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.07 KB
/
build.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
name: Build
# Run workflow on every push to the master branch
on:
push:
jobs:
publish:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Inject slug/short variables
uses: rlespinasse/[email protected]
- name: "Set master version"
if: ${{ github.ref == 'refs/heads/master'}}
run: echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
env:
APP_VERSION: $(git rev-parse --short "$GITHUB_SHA")
- name: "Set branch version"
if: ${{ github.ref != 'refs/heads/master'}}
run: echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
env:
APP_VERSION: ${{ env.GITHUB_REF_SLUG }}-$(git rev-parse --short "$GITHUB_SHA")
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build with dotnet
run: dotnet build src/aoWebWallet --configuration Release
- name: Publish Website
run: dotnet publish src/aoWebWallet -o publish/aoWebWallet -c Release --version-suffix ${{ env.APP_VERSION }}