Bump actions/checkout from 3 to 4 (#452) #160
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: 📗 Documentation Build | |
on: | |
push: | |
paths: | |
- 'docs/**' | |
- '.github/workflows/documentation.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
- '.github/workflows/documentation.yml' | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. | |
run: | | |
cd docs | |
npm ci | |
npm run docs:build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vuepress/dist | |
cname: docs.nubesgen.com |