Skip to content

Commit cc9a3aa

Browse files
committed
docs: publish final site to gh pages
1 parent 8e900da commit cc9a3aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI
33
on:
44
workflow_dispatch:
55
push:
6+
branches: ["main", "dev-*"]
67
pull_request:
78
release:
89
types: [published]
@@ -113,7 +114,7 @@ jobs:
113114
npm install -g netlify-cli
114115
# push main branch to production, others to preview --
115116
if [ "${ALIAS}" == "main" ]; then
116-
netlify deploy --dir=docs/_build --prod
117+
netlify deploy --dir=docs/_build --alias="main"
117118
else
118119
netlify deploy --dir=docs/_build --alias="${ALIAS}"
119120
fi
@@ -132,3 +133,7 @@ jobs:
132133
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
133134
env_url: 'https://${{ steps.deployment.outputs.env }}--quartodoc.netlify.app'
134135
logs: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
136+
- uses: peaceiris/actions-gh-pages@v3
137+
with:
138+
github_token: ${{ secrets.GITHUB_TOKEN }}
139+
publish_dir: docs/_build

0 commit comments

Comments
 (0)