Update stale.yml #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'documentation/**' | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
permissions: | |
contents: write # for Git to git push | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.4.0' | |
- name: Release to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: git | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
npm --prefix documentation ci | |
npm --prefix documentation run build | |
mv documentation/build docs | |
echo "kotest.io" > docs/CNAME | |
echo "kotest.io" > CNAME | |
git add docs -f | |
git commit -m "Updated docs" | |
git push origin master:gh-pages --force |