Skip to content

Commit fc21c53

Browse files
committed
Update build for wiki pages
1 parent ec9702c commit fc21c53

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Deploy to GitHub Pages
22

33
# Run workflow on every push to the master branch
44
on:
5+
workflow_dispatch:
56
push:
67
branches: [ main ]
78

@@ -10,9 +11,23 @@ jobs:
1011
# use ubuntu-latest image to run steps on
1112
runs-on: ubuntu-latest
1213
steps:
13-
# uses GitHub's checkout action to checkout code form the master branch
14+
1415
- uses: actions/checkout@v2
1516

17+
# Wiki files: Compact Machines
18+
- uses: actions/checkout@v2
19+
with:
20+
repository: "compactmods/compactmachines.wiki"
21+
path: "Web/wwwroot/wiki-pages/machines"
22+
- run: rm -rf Web/wwwroot/wiki-pages/machines/.git
23+
24+
# Wiki files: Compact Crafting
25+
- uses: actions/checkout@v2
26+
with:
27+
repository: "compactmods/compactcrafting.wiki"
28+
path: "Web/wwwroot/wiki-pages/crafting"
29+
- run: rm -rf Web/wwwroot/wiki-pages/crafting/.git
30+
1631
# sets up .NET Core SDK 3.1
1732
- name: Setup .NET Core SDK
1833
uses: actions/setup-dotnet@v1

0 commit comments

Comments
 (0)