Skip to content

Commit caf086e

Browse files
committed
messing around with stuff
1 parent 6436fc7 commit caf086e

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
uses: rossjrw/pr-preview-action@v1
2929
with:
3030
source-dir: ./storybook-static/
31-
preview-branch: github-pages
31+
preview-branch: gh-pages

.github/workflows/gh-pages.yml

+6-16
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323

2424
jobs:
2525
# Build job
26-
build:
26+
deploy:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout
@@ -34,19 +34,9 @@ jobs:
3434
run: |
3535
npm install
3636
npm run build-storybook
37-
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v3
37+
- uses: JamesIves/github-pages-deploy-action@v4
3938
with:
40-
path: storybook-static/
41-
42-
# Deployment job
43-
deploy:
44-
environment:
45-
name: github-pages
46-
url: ${{ steps.deployment.outputs.page_url }}
47-
runs-on: ubuntu-latest
48-
needs: build
49-
steps:
50-
- name: Deploy to GitHub Pages
51-
id: deployment
52-
uses: actions/deploy-pages@v4
39+
folder: ./storybook-static/
40+
branch: gh-pages
41+
clean-exclude: pr-preview
42+
force: false

0 commit comments

Comments
 (0)