Skip to content

Commit

Permalink
💚 webapp CI github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Apr 29, 2024
1 parent e11cc9e commit 1adaf9f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/webapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Webapp

on:
workflow_dispatch:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4

# Install dependencies
- name: Install Dependencies
run: npm install
working-directory: ./joyboy-webapp

# Build step with working directory set to ./crates/wasm/app
# NODE_OPTIONS=--openssl-legacy-provider is required for the build step to work
- name: Build
run: NODE_OPTIONS=--openssl-legacy-provider npm run build
working-directory: ./joyboy-webapp

# Deploy step
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./joyboy-webapp/build

0 comments on commit 1adaf9f

Please sign in to comment.