-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (34 loc) · 1.03 KB
/
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
name: deploy-gh-pages
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.400
- name: Restore tools
env:
GithubUser: ${{ secrets.GITHUBUSER }}
PackageToken: ${{ secrets.PACKAGETOKEN }}
run: dotnet tool restore
- name: Restore
env:
GithubUser: ${{ secrets.GITHUBUSER }}
PackageToken: ${{ secrets.PACKAGETOKEN }}
run: dotnet restore
- name: Build
working-directory: ./
run: dotnet fsdocs build --eval --noapidocs
- name: deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: ./output # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch