Skip to content

v1.0.0-alpha.1

v1.0.0-alpha.1 #1

Workflow file for this run

name: Deploy to GitHub Pages
# This workflow will trigger on any tag/release created on *any* branch
# Make sure to create tags/releases only from the "master" branch for consistency
on:
release:
types: [published]
jobs:
lint-export-client:
name: Lint and Export client
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BASE_PATH: ${{ secrets.NEXT_PUBLIC_BASE_PATH }}
RELEASE_VERSION: ${{ secrets.RELEASE_VERSION }}
RELEASE_PAGE: ${{ secrets.RELEASE_PAGE }}
COMMIT_ID: ${{ secrets.COMMIT_ID }}
OPENGRAPH_IMAGE_URL: ${{ secrets.OPENGRAPH_IMAGE_URL }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Use NodeJS v20.15.0
uses: actions/setup-node@v3
with:
node-version: 20.15.0
- name: Install Dependencies and lint
run: |
cd docs
npm install
- name: Lint
run: |
cd docs
npm run lint
- name: Export static files
run: |
cd docs
npm run export
- name: Disable Jekyll
run: touch docs/out/.nojekyll
- name: Archive Development Artifact
uses: actions/upload-artifact@v3
with:
name: main-out
path: docs/out
retention-days: 3
deploy-client:
name: Deploy client to Github Pages
needs: lint-export-client
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: main-out
- name: List files for publish
run: ls -l -a
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_branch: gh-pages