Skip to content

README: adding 'meaning' section to suggest definitions for 'Foi' #57

README: adding 'meaning' section to suggest definitions for 'Foi'

README: adding 'meaning' section to suggest definitions for 'Foi' #57

# This is a basic workflow to help you get started with Actions
name: Build-Foi-Toy-Web
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a set of commands using the runners shell
- name: install deps and build foi-toy web
run: |
npm install
npm run build:foi-toy-web
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './foi-toy/web'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1