Skip to content

Commit 87ececc

Browse files
committed
Add workflow
1 parent 919d941 commit 87ececc

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
26+
build_index:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Index
30+
uses: actions/checkout@v6
31+
with:
32+
path: index
33+
- name: Checkout Converter
34+
uses: actions/checkout@v6
35+
with:
36+
repository: originlab/DocGHPagesConverter
37+
path: converter
38+
- uses: actions/setup-dotnet@v5
39+
with:
40+
dotnet-version: '10.x'
41+
- run: ls -l
42+
- run: dotnet run --project converter/generator/generator.csproj -- index
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v6
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v5
47+
with:
48+
path: index/out
49+
50+
deploy:
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)