Skip to content

Initial web package based on Typescript, React and Vite #1

Initial web package based on Typescript, React and Vite

Initial web package based on Typescript, React and Vite #1

Workflow file for this run

################################################################################
#
# Copyright (C) 2023 retro.ai
# This file is part of retro-dapp - https://github.com/RetroAI/retro-dapp
#
# SPDX-License-Identifier: Apache-2.0
# See the file LICENSE for more information.
#
################################################################################
name: Build and Deploy
on:
push:
branches:
- main
paths:
# Only run the workflow when files in frontend change
- 'frontend/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend # Set the working directory to frontend folder
steps:
- name: Checkout 🛎️
# If you're using actions/checkout@v2 you must set persist-credentials
# to false in most cases for the deployment to work correctly
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install and Build
run: |
yarn install
yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
# The branch the action should deploy to
branch: gh-pages
# The folder the action should deploy
folder: frontend/dist