Skip to content

Commit

Permalink
Switch deployment to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nullreff committed Jan 30, 2024
1 parent ec23cac commit d94adc3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/cstate.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
name: Deploy Hugo site to S3

on:
# Runs on pushes targeting the default branch
push:
branches:
- main
- nullreff-s3-deploy

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -68,11 +67,15 @@ jobs:
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: shared
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
aws-region: ${{ vars.AWS_REGION }}
- name: Copy to S3
run: |
aws s3 sync . s3://${{ vars.AWS_BUCKET_NAME }}

0 comments on commit d94adc3

Please sign in to comment.