Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freva committed Oct 16, 2024
1 parent a686263 commit b84af13
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and release
name: Build & Deploy

permissions:
contents: read
Expand All @@ -17,12 +17,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: "Production"
url: ${{ vars.PUBLIC_URL }}
env:
S3_BUCKET: ${{ vars.S3_BUCKET }}
CF_DISTRIBUTION_ID: ${{ vars.CF_DISTRIBUTION_ID }}

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -33,7 +28,32 @@ jobs:
- name: Build project
run: yarn build

- name: configure aws credentials
- name: Store build artifact
uses: actions/upload-artifact@v4
with:
name: build
path: dist/

deploy:
runs-on: ubuntu-latest

needs:
- build

environment:
name: "Production"
url: ${{ vars.PUBLIC_URL }}

env:
S3_BUCKET: ${{ vars.S3_BUCKET }}
CF_DISTRIBUTION_ID: ${{ vars.CF_DISTRIBUTION_ID }}

steps:
- uses: actions/download-artifact@v4
with:
name: build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
Expand Down

0 comments on commit b84af13

Please sign in to comment.