Skip to content

add website and ci/cd to update website #1

add website and ci/cd to update website

add website and ci/cd to update website #1

Workflow file for this run

name: Website
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::082113759242:role/github_oidc_role
aws-region: eu-central-1
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22.11.0'
- name: Install Yarn
run: npm install -g [email protected]
- name: Install dependencies
working-directory: web
run: yarn install
- name: Build project
working-directory: web
run: yarn build
- name: Upload to S3
working-directory: web
run: |
aws s3 sync ./build s3://schafkopf-web-082113759242 --delete