mirror of
https://github.com/Noratrieb/womangling.git
synced 2026-01-14 08:55:03 +01:00
Create deploy.yml
This commit is contained in:
parent
c6f7915533
commit
d60694f013
1 changed files with 26 additions and 0 deletions
26
.github/workflows/deploy.yml
vendored
Normal file
26
.github/workflows/deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-22.04
|
||||
environment: garage
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Copy website
|
||||
run: |
|
||||
mkdir dist
|
||||
cp *.html *.css *.js ./dist
|
||||
- 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