Skip to content

Commit e66e1f7

Browse files
committed
Try deploying from branch
1 parent 2d5d63d commit e66e1f7

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.github/workflows/deploy-catalog.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ on:
1212
workflow_dispatch:
1313

1414
permissions:
15-
contents: read
16-
pages: write
17-
id-token: write
15+
contents: write
1816

1917
concurrency:
2018
group: "pages"
2119
cancel-in-progress: false
2220

2321
jobs:
24-
build:
22+
build-and-deploy:
2523
runs-on: ubuntu-latest
2624
steps:
2725
- name: Checkout
@@ -64,18 +62,10 @@ jobs:
6462
- name: Ensure .nojekyll exists
6563
run: touch catalog/out/.nojekyll
6664

67-
- name: Upload artifact
68-
uses: actions/upload-pages-artifact@v3
65+
- name: Deploy to gh-pages branch
66+
uses: peaceiris/actions-gh-pages@v4
6967
with:
70-
path: catalog/out
71-
72-
deploy:
73-
environment:
74-
name: github-pages
75-
url: ${{ steps.deployment.outputs.page_url }}
76-
runs-on: ubuntu-latest
77-
needs: build
78-
steps:
79-
- name: Deploy to GitHub Pages
80-
id: deployment
81-
uses: actions/deploy-pages@v4
68+
github_token: ${{ secrets.GITHUB_TOKEN }}
69+
publish_dir: ./catalog/out
70+
publish_branch: gh-pages
71+
force_orphan: true

0 commit comments

Comments
 (0)