-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 761 Bytes
/
main.yml
File metadata and controls
32 lines (27 loc) · 761 Bytes
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: DeployToGitHubPages
env:
PUBLISH_DIR: CompituProject/bin/Release/netstandard2.1/publish/wwwroot
# Controls when the action will run
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish app
run: dotnet publish -c Release
- name: Rewrite base href
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
with:
html_path: ${{ env.PUBLISH_DIR }}/index.html
base_href: /CompituProject/
- name: GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v1.5.1
with:
target_branch: gh-pages
build_dir: ${{ env.PUBLISH_DIR }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}