adding automerge #2
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: Deploy Docs | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy-gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Deploy Docs | |
uses: intergiro/vuepress-deploy@fix_git_repo # Update back to jenkey2011/vuepress-deploy@master once merged | |
env: | |
GITHUB_DEPLOY: true | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TARGET_REPO: mitre/saf-training | |
TARGET_BRANCH: gh-pages | |
BUILD_SCRIPT: npm ci && npm run docs:build | |
BUILD_DIR: src/.vuepress/dist/ |