We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c6215 commit f736797Copy full SHA for f736797
.github/workflows/pages.yaml
@@ -1,8 +1,5 @@
1
name: GitHub Pages
2
-on:
3
- push:
4
- branches:
5
- - main
+on: push
6
permissions:
7
contents: write
8
jobs:
@@ -19,12 +16,16 @@ jobs:
19
16
run: pnpm build
20
17
- name: Remove all files except dist directory
21
18
run: find . -maxdepth 1 ! -name 'dist' ! -name '.git' ! -name '.' -exec rm -rf {} +
22
- - name: Move dist to docs
23
- run: mv dist docs
+ - name: Move dist to temporary docs directory
+ run: mv dist $RUNNER_TEMP/docs
24
- uses: actions/checkout@v3
25
with:
26
ref: 'gh-pages'
27
clean: false
+ - name: Replace docs directory with the new one
+ run: |
+ rm -rf docs
28
+ mv $RUNNER_TEMP/docs docs
29
- name: Push to gh-pages
30
run: |
31
git config user.name "github-actions[bot]"
0 commit comments