Merge pull request #92 from SparebankenVest/at-bump-runners-image #43
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: publish docs | |
on: | |
push: | |
branches: | |
- master | |
- v1.4.0 | |
jobs: | |
build-deploy-docs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10.19.x' | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Build | |
run: | | |
npm i | |
npm run build | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
env: | |
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./public |