feat(core): add manage user modal #173
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
jobs: | |
build: | |
name: Build app | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
- name: Build | |
env: | |
OAUTH_URI: ${{ secrets.OAUTH_URI }} | |
OAUTH_SCOPE: ${{ secrets.OAUTH_SCOPE }} | |
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }} | |
OCULAR_ACKEE_HOST: ${{ secrets.OCULAR_ACKEE_HOST }} | |
OCULAR_ACKEE_DOMAIN_ID: ${{ secrets.OCULAR_ACKEE_DOMAIN_ID }} | |
run: pnpm run build | |
- name: Upload artifact | |
if: success() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app | |
path: dist | |
deploy: | |
name: Deploy app to GitHub Pages | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: app | |
path: dist | |
- name: Pre-Deploy | |
run: | | |
cp dist/index.html dist/404.html | |
touch dist/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: dist |