Skip to content

Merge pull request #15 from gpsnmeajp/feature/READMEadd #18

Merge pull request #15 from gpsnmeajp/feature/READMEadd

Merge pull request #15 from gpsnmeajp/feature/READMEadd #18

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: deploy document
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# Build
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
registry-url: https://registry.npmjs.org
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v2
with:
path: |
node_modules
key: node-v${{ vars.NODE_VERSION }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
- run: npm ci
- run: npm run build
# Deploy
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v1
with:
path: "docs/.vuepress/dist"
fqdn: nostr-jp.org
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2