mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-14 08:55:01 +01:00
workflow
This commit is contained in:
parent
bf24af3431
commit
fbd3308eb8
1 changed files with 11 additions and 1 deletions
12
.github/workflows/pages.yml
vendored
12
.github/workflows/pages.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue