From fbd3308eb88b860680d8cb049031be1f815c0e09 Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Wed, 13 Aug 2025 21:06:05 +0200 Subject: [PATCH] workflow --- .github/workflows/pages.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f859efe..065abd4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -4,11 +4,11 @@ on: push: branches: - main - pull_request: jobs: test: runs-on: ubuntu-22.04 + environment: garage steps: - uses: actions/checkout@v4 with: @@ -26,3 +26,13 @@ jobs: - name: Build website run: cargo run --manifest-path ./builder/Cargo.toml build + + - name: Deploy website + run: | + aws configure set default.s3.addressing_style path + aws s3 sync ./dist s3://noratrieb.dev + env: + AWS_ACCESS_KEY_ID: "${{ secrets.AWS_KEY_ID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_KEY }}" + AWS_REGION: garage + AWS_ENDPOINT_URL: https://garage.noratrieb.dev