Skip to content

Commit

Permalink
chore: add workflow to deploy docs page (mysticatea#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Nov 27, 2022
1 parent 0bd0441 commit cbd42e9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/GHPages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch: null

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Packages
run: npm ci
- name: Build docs
run: |+
export NODE_OPTIONS=--openssl-legacy-provider
npm run docs:build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/.vuepress/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict"

module.exports = {
base: "/eslint-utils/",
title: "@eslint-community/eslint-utils",
description: "Utilities for ESLint plugins and custom rules.",
serviceWorker: true,
Expand Down

0 comments on commit cbd42e9

Please sign in to comment.