Skip to content

Commit

Permalink
Create ReleaseAWSS3.yml (Project-DARC#8)
Browse files Browse the repository at this point in the history
* Create ReleaseAWSS3.yml

* Update ReleaseAWSS3.yml

* Update ReleaseAWSS3.yml
  • Loading branch information
AGDholo authored May 9, 2023
1 parent c5221e3 commit fa6ccc9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ReleaseAWSS3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This is a basic workflow to help you get started with Actions

name: ReleaseAWSS3

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install Dependencies
working-directory: ./darc-docs
run: |
npm install
- name: Build
working-directory: ./darc-docs
run: npm run build
env:
CI: true

- name: Configure AWS Credentials
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: us-east-1

- name: Deploy static site to S3 bucket
working-directory: ./darc-docs
run: aws s3 sync ./build s3://darc-website --delete

0 comments on commit fa6ccc9

Please sign in to comment.