Skip to content

Continuous Delivery

Continuous Delivery #2

Workflow file for this run

# Copyright (c) 2020 - 2023, Ayogo Health Inc. All rights reserved. Confidential.
name: Continuous Delivery
permissions:
contents: read
pages: write
id-token: write
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: npm
- name: Install dependencies
run: npm ci
- name: Run Tests
run: npm test
deploy:
needs: test
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Create Site folder
run: |
mkdir -p _site && cp index.html ay-confetti.js _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v3