Skip to content

deploy

deploy #513

Workflow file for this run

name: deploy
on:
workflow_run:
workflows: [ "test-code-examples" ]
branches: [ master ]
types:
- completed
jobs:
gh-release:
if: (github.event_name != 'pull_request' && github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "gh-actions"
yarn install --frozen-lockfile
yarn run deploy