-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (50 loc) · 1.57 KB
/
ci_web.yml
File metadata and controls
55 lines (50 loc) · 1.57 KB
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
50
51
52
53
54
55
name: 'Build and publish web application'
on:
create:
branches:
- release/**
push:
branches:
- master
- dev/**
paths:
- CodeHashifier.Uno/CodeHashifier.Uno.Wasm/**
- CodeHashifier.Uno/CodeHashifier.Shared/**
- .github/workflows/**
pull_request:
branches:
- master
paths:
- CodeHashifier.Uno/CodeHashifier.Uno.Wasm/**
- CodeHashifier.Uno/CodeHashifier.Shared/**
- .github/workflows/**
permissions:
contents: write
jobs:
build:
name: Build app (WebAssembly)
runs-on: windows-latest
steps:
# Checkout the code
- uses: actions/checkout@v2
# Install .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
# Generate the website
- name: Publish
run: dotnet publish CodeHashifier.Uno/CodeHashifier.Uno.Wasm/CodeHashifier.Uno.Wasm.csproj --configuration Release
# Publish the website
- name: GitHub Pages action
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: CodeHashifier.Uno/CodeHashifier.Uno.Wasm/bin/Release/net7.0/publish
allow_empty_commit: false
keep_files: false
force_orphan: true
# TODO uncomment the following line if you have a custom domain name
# cname: demo.meziantou.net