Skip to content

Refactor "under 5 minutes" vs "5 to 15 (over5)" pages and js logic #28

Refactor "under 5 minutes" vs "5 to 15 (over5)" pages and js logic

Refactor "under 5 minutes" vs "5 to 15 (over5)" pages and js logic #28

Workflow file for this run

# Reference:
# https://github.com/actions/starter-workflows/blob/main/pages/static.yml
# https://github.com/OSU-Sustainability-Office/sustainability-kiosks/blob/master/.github/workflows/test-build-s3.yml
# Simple workflow for deploying static content to GitHub Pages
name: S3 Test Build (static content)
on:
# Runs on PR targeting the default branch
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: AWS Creds
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "."
- name: deploy frontend to s3
run: |
aws s3 sync ./ s3://time-calc-under-5