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/nonproductions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy site into non production environment

on:
push:
branches:
- feature*

jobs:
build:
runs-on: ubuntu-latest
env:
BUCKET_NAME: cfst-3457-b33b08b68dd59e5efc0b6570c-nonprodbucket-25jfa1ajwzt5
steps:
- name: checkout code
uses: actions/checkout@v2
- name: Configure AWS cli
uses: aws-actions/configure-aws-credentials@v2
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: set up node js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Build site
run: |
npm ci
npm run build
- name: Deploy site to bucket
run: aws s3 cp public s3://${{ env.BUCKET_NAME }} --recursive --acl public-read
31 changes: 31 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy site into production environment

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
env:
BUCKET_NAME: cfst-3457-b33b08b68dd59e5efc0b6570ce31-prodbucket-xkgbyxelh0jz
steps:
- name: checkout code
uses: actions/checkout@v2
- name: Configure AWS cli
uses: aws-actions/configure-aws-credentials@v2
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: set up node js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Build site
run: |
npm ci
npm run build
- name: Deploy site to bucket
run: aws s3 cp public s3://${{ env.BUCKET_NAME }} --recursive --acl public-read
1 change: 1 addition & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const IndexPage = () => {
Welcome to{' '}
<code className='title_code'>Cloud Coffee</code>
</h1>
<h4 className='title'>Launch Date Announced!!!</h4>


<p className='description'>
Expand Down