diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index afda80a..5a202ce 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -15,11 +15,10 @@ jobs: uses: actions/checkout@v4 - name: Install Packages - run: yarn install && cd example && yarn install && yarn run build && cd dist + run: yarn install && cd example && yarn install && yarn run build && cd .. - name: Publish current workdir (which contains generated content) to GitHub Pages uses: rayluo/github-pages-overwriter@v1.3 - run: echo "switched `pwd`" with: @@ -32,7 +31,7 @@ jobs: # Such a directory does *not* have to already exist in your repo, # it could be an output directory created dynamically # by your static website builder. - source-directory: . + source-directory: example/dist # Optional. Default value "gh-pages". # It specifies the temporary branch which hosts the static website.