Skip to content

Merge pull request #29 from AyogoHealth/dependabot/npm_and_yarn/fast-… #27

Merge pull request #29 from AyogoHealth/dependabot/npm_and_yarn/fast-…

Merge pull request #29 from AyogoHealth/dependabot/npm_and_yarn/fast-… #27

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@v6
- uses: actions/setup-node@v6
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Run Tests
run: npm test
deploy:
needs: test
runs-on: ubuntu-latest
if: github.repository == 'AyogoHealth/ay-confetti'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
- name: Create Site folder
run: |
mkdir -p _site && cp index.html ay-confetti.js _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v5