-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.34 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: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore tools
run: dotnet tool restore
- name: make script executable
run: chmod u+x build.sh
- name: Build
run: ./build.sh
- name: Pack
run: ./build.sh packlocal
- name: fix template strings
run: sed -i "s {{BASE_URL}} https://fslab.org/FsLab.Fornax g" ./client/globals.fsx && sed -i "s {{SITE_TITLE}} FsLab.Fornax g" ./client/generators/layout.fsx && sed -i "s {{SITE_TITLE}} FsLab.Fornax g" ./client/generators/index.fsx && sed -i "s {{SITE_TITLE}} FsLab.Fornax g" ./client/loaders/globalloader.fsx && sed -i "s {{SITE_TITLE}} FsLab.Fornax g" ./client/loaders/pageloader.fsx
- name: Build website
working-directory: ./client
run: dotnet fornax build
- name: deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: ./client/_public # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch