Skip to content

Merge pull request #72 from slackner/add-semanticdiff #17

Merge pull request #72 from slackner/add-semanticdiff

Merge pull request #72 from slackner/add-semanticdiff #17

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "sources" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install yarn
uses: borales/actions-yarn@v4
with:
cmd: install # runs the `yarn install` command
- name: Build the docs
uses: borales/actions-yarn@v4
with:
cmd: docs:build # runs the `yarn docs:build` command
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
# Artifact name
name: github-pages # optional, default is github-pages
# Path of the directory containing the static assets.
path: docs/.vuepress/dist # default is _site/
# Duration after which artifact will expire in days.
retention-days: 7 # optional, default is 1
# Deploy job
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1