File tree Expand file tree Collapse file tree 3 files changed +44
-19
lines changed
Expand file tree Collapse file tree 3 files changed +44
-19
lines changed Original file line number Diff line number Diff line change 1- name : Publish website
1+ name : Deploy website
22
33on :
44 push :
55 branches : main
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : true
616
717jobs :
8- publish :
18+ deploy :
19+ environment :
20+ name : github-pages
21+ url : ${{ steps.deployment.outputs.page_url }}
922 runs-on : ubuntu-latest
1023 steps :
11- - uses : actions/checkout@v2
24+ - uses : actions/checkout@v4
1225 - name : Set up Node.js
13- uses : actions/setup-node@v3
26+ uses : actions/setup-node@v4
1427 with :
1528 node-version : ' 24'
1629 - name : Install yarn
@@ -24,15 +37,16 @@ jobs:
2437 run : |
2538 bundle install
2639 yarn install
27- - name : Install AWS CLI
28- uses : unfor19/install-aws-cli-action@v1
29- - name : Build and publish website
30- run : bundle exec rake
40+ - name : Build website
41+ run : bundle exec rake compile
3142 env :
32- AWS_S3_BUCKET_NAME : ${{ secrets.AWS_S3_BUCKET_NAME }}
33- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
34- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
35- AWS_DEFAULT_REGION : ${{ secrets.AWS_REGION }}
36- BUNNYCDN_ACCESS_KEY : ${{ secrets.BUNNYCDN_ACCESS_KEY }}
37- BUNNYCDN_ZONE_ID : ${{ secrets.BUNNYCDN_ZONE_ID }}
38- SITE_BASE_URL : ${{ secrets.SITE_BASE_URL }}
43+ SITE_BASE_URL : ${{ secrets.SITE_BASE_URL }}
44+ - name : Setup GitHub Pages
45+ uses : actions/configure-pages@v5
46+ - name : Upload static artifact
47+ uses : actions/upload-pages-artifact@v3
48+ with :
49+ path : ./build
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ gem install foreman
5959 ```
6060 The static site will be built in the ` ./build ` directory.
6161
62+ ## Deployment
63+
64+ The site is deployed with GitHub Pages via ` .github/workflows/publish.yml ` .
65+ On pushes to ` main ` , the workflow runs ` bundle exec rake compile ` and publishes ` ./build ` .
66+ Set the ` SITE_BASE_URL ` repository secret to your docs custom domain so the sitemap is generated with the correct URLs.
67+
6268## Contributing
6369
6470- Follow the established structure for new guides, concepts, or integrations.
Original file line number Diff line number Diff line change 1- - host to Github
2- - create the S3 bucket in AWS
1+ # My TODO List
2+
3+ x host to Github
4+
5+ ! create the S3 bucket in AWS
6+ ! setup the BunnyCDN domain
7+
8+ - publish to Github pages
39- setup the Plausible handle
4- - setup the BunnyCDN domain
5- - fisrt deployment
10+ - first deployment
611- update DNS
712- shutdown README.com
You can’t perform that action at this time.
0 commit comments