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 b84af13 commit cf84c37
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,42 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build

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

deploy:
runs-on: ubuntu-latest

needs:
- build
#
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Install dependencies
# run: yarn install
#
# - name: Build project
# run: yarn build
#
# - name: Store build artifact
# uses: actions/upload-artifact@v4
# with:
# name: build
# path: dist/
#
# deploy:
# runs-on: ubuntu-latest
#
# needs:
# - build

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

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

steps:
- name: Debug
run: |
echo '${{ toJSON(vars) }}'
- uses: actions/download-artifact@v4
with:
name: build
Expand All @@ -58,6 +62,7 @@ jobs:
with:
aws-region: us-east-1
role-to-assume: ${{ vars.IAM_ROLE }}
retry-max-attempts: 2

- name: Deploy
run: |
Expand Down

0 comments on commit cf84c37

Please sign in to comment.