Skip to content

Commit f4d7d56

Browse files
committed
Fix build
1 parent 64f3e96 commit f4d7d56

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/jekyll-build.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch: {}
55
push:
66
branches:
7-
- "gh-pages"
7+
- gh-pages
88

99
permissions:
1010
contents: read
@@ -18,15 +18,12 @@ concurrency:
1818
jobs:
1919
build:
2020
runs-on: ubuntu-latest
21-
22-
# fix, ensure all run steps happen in repo root
2321
defaults:
2422
run:
25-
working-directory: ${{ github.workspace }}
26-
shell: bash
23+
working-directory: .
2724

2825
steps:
29-
- name: Checkout project-template
26+
- name: Checkout template
3027
uses: actions/checkout@v4
3128
with:
3229
repository: dsb-ifi/project-template
@@ -38,13 +35,10 @@ jobs:
3835
with:
3936
path: contents
4037

41-
- name: Merge template and contents (including hidden)
38+
- name: Merge template and contents safely
4239
run: |
43-
shopt -s dotglob
44-
mv template/* . || true
45-
mv template/.[!.]* . || true
46-
mv contents/* . || true
47-
mv contents/.[!.]* . || true
40+
rsync -av template/ ./
41+
rsync -av contents/ ./
4842
4943
- name: Setup Pages
5044
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)