-
-
Notifications
You must be signed in to change notification settings - Fork 5
27 lines (27 loc) · 695 Bytes
/
Copy pathbuild.yml
File metadata and controls
27 lines (27 loc) · 695 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
name: Build-Pages
on:
push:
branches:
- master
- main
workflow_dispatch:
jobs:
generate:
name: Generate Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: dotnet run
run: dotnet run --
- name: Fix Atom feed content type
run: sed -i 's/<content>/<content type="html">/g' ./output/feed.atom
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output