WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/nonproduction.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy feature branches to nonproduction bucket
on:
push:
branches:
- feature*
jobs:
build:
runs-on: ubuntu-latest
env:
BUCKET_NAME: cfst-3457-7e4918e34287cd70b855b308c-nonprodbucket-1qd1lcrp70u0k
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Configure AWS cli
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-east-1
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Build
run: |
npm ci
npm run build
- name: Deploy bundle to bucket
run: |
echo 'copying files to s3 bucket'
aws s3 cp public s3://${{ env.BUCKET_NAME }}/ --recursive
33 changes: 33 additions & 0 deletions .github/workflows/producion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to production

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
env:
BUCKET_NAME: cfst-3457-7e4918e34287cd70b855b308c9a6-prodbucket-nsexcdkffy4h
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Configure AWS cli
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-east-1
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Build
run: |
npm ci
npm run build
- name: Deploy bundle to bucket
run: |
echo 'copying files to s3 bucket'
aws s3 cp public s3://${{ env.BUCKET_NAME }}/ --recursive
1 change: 1 addition & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const IndexPage = () => {
<code className='title_code'>Cloud Coffee</code>
</h1>

<h4 className='title'>Launch Date Announced!!!</h4>

<p className='description'>
Join Our Mailing List!
Expand Down