This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Cloudflare | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: aquaproj/[email protected] | |
with: | |
aqua_version: v2.23.1 | |
- name: Build | |
run: hugo | |
- name: aws cli | |
run: | | |
export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID | |
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY | |
export AWS_DEFAULT_REGION=auto | |
aws s3api list-objects-v2 --endpoint-url $ENDPOINT --bucket portfolio --region auto | |
env: | |
ENDPOINT: ${{secrets.S3_ENDPOINT}} | |
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | |
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} |