From 8c2748a00b053eeb7c507880f07f3bc28a323ea1 Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:10:05 -0400 Subject: [PATCH] ci: Wrangler website deployer (#404) --- .github/PULL_REQUEST_TEMPLATE.md | 21 +++------------------ .github/workflows/deploy-website.yml | 12 +++++++----- docs/GemFile.lock | 17 +++++++++-------- 3 files changed, 19 insertions(+), 31 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 72df7eae..7bda92e5 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,19 +1,4 @@ -BY SUBMITTING A PULL REQUEST AND CHANGES TO THIS REPOSITORY YOU ARE ACKNOWLEDGING AND AGREE TO THE TERMS IN BOTH THE [DEVELOPER CERTIFICATE OF ORIGIN](https://developercertificate.org) AND THE [APACHE 2.0 LICENSE](https://opensource.org/licenses/Apache-2.0). +#### done when -PLEASE REMOVE EXPLANATORY TEXT AND UNNEEDED SECTIONS BEFORE CREATING PULL REQUEST. CREATE A DRAFT PULL REQUEST IF YOU INTEND TO ADD MORE COMMITS. REMOVE DRAFT STATUS AND REQUEST REVIEW FROM `DaveSkender` and `LeeDongGeon1996` WHEN YOU ARE READY TO COMMIT CHANGES. - -### Description - -Please include a summary of the change and which issue is fixed. Please also include relevant motivation, context, and sources of information or recipes. - -Fixes # - -### Checklist - -- [ ] My code follows the existing style, code structure, and naming taxonomy -- [ ] I have commented my code, particularly in hard-to-understand areas -- [ ] I have performed a self-review of my own code and included any verifying manual calculations -- [ ] I have added or updated unit tests that prove my fix is effective or that my feature works, and achieves sufficient code coverage. New and existing unit tests pass locally and in the build (below) with my changes -- [ ] My changes generate no new warnings and running code analysis does not produce any issues -- [ ] I have added or run the performance tests that depict optimal execution times -- [ ] I have made corresponding changes to the documentation +- [ ] Implement +- [ ] Fix: # diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 77b7dcc4..58058c1a 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -15,7 +15,7 @@ jobs: environment: name: stockindicators.dev - url: https://python.stockindicators.dev + url: ${{ steps.deploy.outputs.deployment-alias-url }} steps: - name: Checkout source @@ -63,10 +63,12 @@ jobs: run: bundle exec jekyll build - name: Publish to Cloudflare Pages - uses: cloudflare/pages-action@v1 + id: deploy + uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_KEY }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} - directory: docs/_site - wranglerVersion: 'latest' + wranglerVersion: "latest" + command: > + pages deploy docs/_site + --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} diff --git a/docs/GemFile.lock b/docs/GemFile.lock index ae09219d..e1d06f98 100644 --- a/docs/GemFile.lock +++ b/docs/GemFile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - activesupport (7.2.1) + activesupport (7.2.1.2) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) @@ -36,9 +36,10 @@ GEM ffi (>= 1.15.0) eventmachine (1.2.7) eventmachine (1.2.7-x64-mingw32) - execjs (2.9.1) - faraday (2.11.0) + execjs (2.10.0) + faraday (2.12.0) faraday-net_http (>= 2.0, < 3.4) + json logger faraday-net_http (3.3.0) net-http @@ -102,7 +103,7 @@ GEM nokogiri (>= 1.4) htmlcompressor (0.4.0) http_parser.rb (0.8.0) - i18n (1.14.5) + i18n (1.14.6) concurrent-ruby (~> 1.0) jekyll (3.10.0) addressable (~> 2.4) @@ -222,7 +223,7 @@ GEM gemoji (>= 3, < 5) html-pipeline (~> 2.2) jekyll (>= 3.0, < 5.0) - json (2.7.2) + json (2.7.4) json-minify (0.0.3) json (> 0) kramdown (2.4.0) @@ -256,7 +257,7 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rexml (3.3.7) + rexml (3.3.9) rouge (3.30.0) rubyzip (2.3.2) safe_yaml (1.0.5) @@ -276,12 +277,12 @@ GEM ethon (>= 0.9.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - uglifier (4.2.0) + uglifier (4.2.1) execjs (>= 0.3.0, < 3) unicode-display_width (1.8.0) uri (0.13.1) wdm (0.2.0) - webrick (1.8.1) + webrick (1.8.2) PLATFORMS x64-mingw-ucrt