From 78fb51f183ff3af2fc2793422710b547bdc289db Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Tue, 2 Jan 2024 16:18:52 -0600 Subject: [PATCH 1/7] Create publish-gem.yml --- .github/publish-gem.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/publish-gem.yml diff --git a/.github/publish-gem.yml b/.github/publish-gem.yml new file mode 100644 index 00000000..e48c355d --- /dev/null +++ b/.github/publish-gem.yml @@ -0,0 +1,22 @@ +name: Publish Gem + +on: + release: + types: [released] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.7.8' + - name: Build gem + run: | + gem build github-pages.gemspec + - name: Publish + run: | + gem push github-pages.gem --key ${{ secrets.PAGES_GEM_PUBLISH }} From 58dede80141cde097e90fe45f9196d1a33d68aec Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Tue, 2 Jan 2024 16:20:25 -0600 Subject: [PATCH 2/7] Rename .github/publish-gem.yml to .github/workflows/publish-gem.yml --- .github/{ => workflows}/publish-gem.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/publish-gem.yml (100%) diff --git a/.github/publish-gem.yml b/.github/workflows/publish-gem.yml similarity index 100% rename from .github/publish-gem.yml rename to .github/workflows/publish-gem.yml From 8b4a69748797c3b0ce5c6d0046a880b18a3c021b Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 3 Jan 2024 17:26:44 -0600 Subject: [PATCH 3/7] Update publish-gem.yml --- .github/workflows/publish-gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml index e48c355d..ddd2ceb4 100644 --- a/.github/workflows/publish-gem.yml +++ b/.github/workflows/publish-gem.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '2.7.8' + ruby-version: '3.2.0' - name: Build gem run: | gem build github-pages.gemspec From 47b2bddec3b1fd94826d2628a6bb634d09b29344 Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 3 Jan 2024 17:27:09 -0600 Subject: [PATCH 4/7] Update ci.yaml --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d9249a52..b0f7e85c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.2.0 bundler-cache: true - name: build run: script/bootstrap From f6df838540172cd696cc36a35ebed3b8d5a4fc5e Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Fri, 5 Jan 2024 13:10:19 -0600 Subject: [PATCH 5/7] Update CONTRIBUTING.md --- docs/CONTRIBUTING.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 29225e32..d2c69208 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -77,6 +77,9 @@ At a high level, [the process for proposing changes](https://guides.github.com/i `script/cibuild` +## Publishing Gem +In order to publish the Gem bump the version in *this file*, commit, create a tag with the new version number, and finally push the commit and tag to the repo. + ## Code of conduct This project is governed by [the Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. From 1d3f13f0415c603874189cc93178f5a0b98e5e7a Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 17 Jan 2024 13:27:14 -0600 Subject: [PATCH 6/7] Update cibuild --- script/cibuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/cibuild b/script/cibuild index 5aa92eac..3bada1d3 100755 --- a/script/cibuild +++ b/script/cibuild @@ -3,7 +3,7 @@ set -e bundle exec jekyll build -bundle exec htmlproofer ./_site --check-html --check-sri +bundle exec htmlproofer ./_site --check-html --check-sri --typhoeus-config='{"headers":{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0"}}' bundle exec rubocop -D --config .rubocop.yml bundle exec script/validate-html gem build jekyll-theme-leap-day.gemspec From f9c81eb77074378b96b0d9b0282f5044ade991f5 Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 17 Jan 2024 13:28:52 -0600 Subject: [PATCH 7/7] Update validate-html --- script/validate-html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/validate-html b/script/validate-html index 43d8fca8..8f51642e 100755 --- a/script/validate-html +++ b/script/validate-html @@ -20,7 +20,7 @@ def validate(file) return puts "Valid!" if results.errors.empty? - results.errors.each { |err| puts err.to_s } + results.errors.each { |err| puts err } exit 1 end