Skip to content

Merge pull request #7 from HEP-SoC/pypi_version #18

Merge pull request #7 from HEP-SoC/pypi_version

Merge pull request #7 from HEP-SoC/pypi_version #18

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16.14'
- name: Cache Yarn packages
uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./docs # Change this to the directory containing package.json
- name: Build website
run: yarn build
working-directory: ./docs # Change this to the directory containing package.json
# Popular action to deploy to GitHub Pages:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com