Skip to content

Commit ad3f54b

Browse files
Copilotfrenchy64
andauthored
migrate: replace AWS S3 deployment with GitHub Pages (#2)
Agent-Logs-Url: https://github.com/typedclojure/typedclojure.org/sessions/ef25a0d4-af03-4449-8b69-2291cbf88918 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenchy64 <287396+frenchy64@users.noreply.github.com>
1 parent 224a8b1 commit ad3f54b

4 files changed

Lines changed: 26 additions & 14 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,36 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
813
concurrency:
9-
group: "website_deployment"
14+
group: "pages"
15+
cancel-in-progress: false
1016

1117
jobs:
1218
deploy:
1319
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
1423
env:
1524
JBAKE_VERSION: "2.6.7"
1625
JBAKE_SHA1: "fd07b833104f2889fde9a07d0c0bf09f0fdecbf6"
1726
ACTIONS_CACHE_VERSION: 1
1827
steps:
19-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2029
- name: JBake Cache
21-
uses: actions/cache@v2
30+
uses: actions/cache@v4
2231
with:
2332
path: |
2433
downloads/*.zip
2534
key: ${{ env.ACTIONS_CACHE_VERSION }}-${{ runner.os }}-${{ env.JBAKE_VERSION }}
26-
- uses: actions/setup-java@v2
35+
- uses: actions/setup-java@v4
2736
with:
28-
distribution: 'adopt'
37+
distribution: 'temurin'
2938
java-version: '11'
3039
- name: Install jbake
3140
run: |
@@ -39,12 +48,14 @@ jobs:
3948
unzip "jbake-${JBAKE_VERSION}-bin.zip"
4049
mv "jbake-${JBAKE_VERSION}-bin" jbake
4150
echo "$PWD/jbake/bin" >> $GITHUB_PATH
42-
- name: Configure AWS Credentials
43-
uses: aws-actions/configure-aws-credentials@v1
51+
- name: Build site
52+
run: ./script/build.sh
53+
- name: Setup Pages
54+
uses: actions/configure-pages@v5
55+
- name: Upload artifact
56+
uses: actions/upload-pages-artifact@v3
4457
with:
45-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
46-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
47-
aws-region: us-west-2
48-
- run: ./script/deploy.sh
49-
env:
50-
AWS_BUCKET: typedclojure.org
58+
path: output
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Source for https://typedclojure.org/
44

5-
Currently deployed via AWS S3.
5+
Currently deployed via GitHub Pages.
66

77
Build requires jbake:
88

‎assets/.nojekyll‎

Whitespace-only changes.

‎assets/CNAME‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typedclojure.org

0 commit comments

Comments
 (0)