generated from MaxGripe/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 38
38 lines (31 loc) · 827 Bytes
/
main.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 to GitHub Pages
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9
- name: Build project
run: dotnet build skunk-html.fsproj
- name: Run F# code to generate HTML
run: dotnet run --project skunk-html.fsproj
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./skunk-html-output"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4