mirror of
https://github.com/ghndrx/webos.git
synced 2026-02-10 06:45:00 +00:00
33 lines
647 B
YAML
33 lines
647 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@v4
|
|
with:
|
|
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
|
|
aws-region: us-east-1
|
|
|
|
- name: Deploy to S3
|
|
run: |
|
|
aws s3 sync . s3://webos.gregh.dev/ \
|
|
--exclude ".git/*" \
|
|
--exclude ".github/*" \
|
|
--exclude "README.md" \
|
|
--delete
|