Skip to content

Merge pull request #822 from VPKSoft/dependabot/npm_and_yarn/Password… #14

Merge pull request #822 from VPKSoft/dependabot/npm_and_yarn/Password…

Merge pull request #822 from VPKSoft/dependabot/npm_and_yarn/Password… #14

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- develop
paths:
- PasswordKeeper-help/**
jobs:
deploy:
environment: Docusaurus
env:
GIT_USER: ${{ secrets.GIT_USER }}
GIT_PASS: ${{ secrets.GIT_PASS }}
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: |
cd PasswordKeeper-help
npm install
- name: Build website
run: |
cd PasswordKeeper-help
npm run deploy
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GIT_PASS }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./PasswordKeeper-help/build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
#user_name: ${{ secrets.GIT_USER }}
#user_email: