Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Aug 12, 2024
1 parent 881553a commit da273c9
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
docker:
runs-on: [ubuntu-22.04]
runs-on: [ubuntu-latest]
needs: [checks]
env:
GIT_LFS_SKIP_SMUDGE: 1
Expand Down Expand Up @@ -55,8 +55,43 @@ jobs:
build-args: |
"TARGET=${{ matrix.docker.path }}"
deploy:
runs-on: [ubuntu-latest]
needs: [checks]
if: ${{ github.ref == 'refs/heads/master' }}
strategy:
fail-fast: false
matrix:
make:
- name: Specs image
path: specs
- bucket: namada-specs-frontend-prod
- name: Docs image
path: docs
- bucket: namada-docs-frontend-prod

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build ${{ matrix.make.name }}
run: npm run build:${{ matrix.make.path }}
- name: Deploy ${{ matrix.make.name }}
run: aws s3 sync packages/${{ matrix.make.path }}/out s3://${{ matrix.make.bucket }} --delete

checks:
runs-on: [ubuntu-22.04]
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit da273c9

Please sign in to comment.