Skip to content

Run webpack directly to build Adventure Pack web app (#494) #348

Run webpack directly to build Adventure Pack web app (#494)

Run webpack directly to build Adventure Pack web app (#494) #348

name: Deploy GitHub Pages
on:
push:
branches:
- main
# Allows running 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 run, skipping runs queued between the run
# in-progress and latest queued. However, don't cancel in-progress runs as it's
# fine to let them complete, and this way we have fewer reports of canceled
# runs.
concurrency:
group: deploy-github-pages
cancel-in-progress: false
jobs:
deploy-github-pages:
# Only run this job on the original repository! To run this on your fork,
# update or remove the line below.
if: github.repository == 'code-chronicles-code/leetcode-curriculum'
environment:
name: deploy-github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up everything
uses: ./.github/workflows/set-up-everything
- name: Build app
run: yarn workspace @code-chronicles/adventure-pack build-app
env:
NODE_ENV: production
- name: Set up Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./workspaces/adventure-pack/dist/web-app
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4