-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anders Nickelsen
committed
Aug 29, 2023
1 parent
1e34e86
commit 4af339a
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
on: | ||
push: | ||
secrets: | ||
AWS_ACCESS_KEY_ID: | ||
required: true | ||
AWS_SECRET_ACCESS_KEY: | ||
required: true | ||
BUCKET: | ||
required: true | ||
DISTRIBUTION_ID: | ||
required: true | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
BUCKET: ${{ secrets.BUCKET }} | ||
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }} | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: build.sh | ||
#- run: deploy.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
title: Dag- og aftenskolen i Rønde | ||
email: [email protected] | ||
baseurl: "" # the subpath of your site, e.g. /blog | ||
url: "http://dag-aftenskolen.dk" # the base hostname & protocol for your site, e.g. http://example.com | ||
url: "https://dag-aftenskolen.dk" # the base hostname & protocol for your site, e.g. http://example.com | ||
exclude: [build.sh, deploy.sh, serve.sh, README.md, Gemfile, Gemfile.lock] | ||
|
||
# Build settings | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
aws s3 sync _site/ s3://dag-aftenskolen.dk --content-type "text/html; charset=utf-8" --delete --cache-control "max-age=0" --exclude "*.sh" $@ | ||
aws s3 cp _site/assets/css/main-2019.css s3://dag-aftenskolen.dk/assets/css/main-2019.css --content-type="text/css" $@ | ||
aws cloudfront create-invalidation --distribution-id EO900804BMV13 --paths /\* $@ | ||
aws s3 sync _site/ s3://$BUCKET --content-type "text/html; charset=utf-8" --delete --cache-control "max-age=0" --exclude "*.sh" $@ | ||
aws s3 cp _site/assets/css/main-2019.css s3://$BUCKET/assets/css/main-2019.css --content-type="text/css" $@ | ||
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths /\* $@ |