Skip to content

Commit 09cddfd

Browse files
authored
SapMachine SAP#1930: Redirect sap.github.io/SapMachine to sapmachine.io (SAP#2123)
1 parent 4f2b77f commit 09cddfd

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build-gh-pages.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,23 @@ jobs:
3434
token: ${{ secrets.GHE_PAT }}
3535
github-server-url: https://github.tools.sap
3636
ref: 'main'
37+
sparse-checkout: |
38+
redirect_index.html
39+
redirect_404.html
40+
assets/
41+
sparse-checkout-cone-mode: true
42+
- name: Prepare site folder
43+
run: |
44+
mkdir site
45+
mv redirect_index.html site/index.html
46+
mv redirect_404.html site/404.html
47+
mv assets site/
3748
- name: Setup Pages
3849
uses: actions/configure-pages@v5
39-
- name: Build with Jekyll
40-
uses: actions/jekyll-build-pages@v1
41-
with:
42-
source: ./
43-
destination: ./_site
4450
- name: Upload artifact
4551
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: site
4654

4755
# Deployment job
4856
deploy:

0 commit comments

Comments
 (0)