Skip to content

Commit

Permalink
Testing S3 Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
brezden committed Nov 5, 2024
1 parent d36fe16 commit 6da8f8e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to S3

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 20.9
uses: actions/setup-node@v2
with:
node-version: '20.9'

- name: Install dependencies
run: npm ci

- name: Build app
run: npm run build

- name: Deploy to S3
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: ${{ secrets.AWS_REGION }}

- name: Copy files to S3
run: |
aws s3 sync build/ s3://${{ secrets.AWS_S3_BUCKET }} --delete
3 changes: 3 additions & 0 deletions src/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default function Home() {
<h2 className="mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">
MarkDock
</h2>
<p className="mt-2 text-center text-sm text-gray-600 max-w">
Group documentation, the way it should be.
</p>
<button
onClick={handleLoginRedirect}
className="mt-4 flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
Expand Down

0 comments on commit 6da8f8e

Please sign in to comment.