Skip to content

Commit

Permalink
Add workflow to deploy docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyanreyer committed Mar 16, 2023
1 parent 557a2e6 commit 94f904e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish-docs.yml
@@ -0,0 +1,43 @@
name: Publish to react-hover-video-player.dev
on:
push:
branches: [main]
jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run docs:build
- uses: actions/upload-pages-artifact
with:
name: "github-pages"
path: ./docs/.vuepress/dist
retention-days: 1

deploy:
timeout-minutes: 5
runs-on: ubuntu-latest
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
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 94f904e

Please sign in to comment.