From 070a8e3ed4e3fc6d1930b90aa439595d07fe2af6 Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Tue, 2 Jan 2024 16:13:29 -0600 Subject: [PATCH 1/5] Create publish-gem.yml --- .github/workflows/publish-gem.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-gem.yml diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml new file mode 100644 index 0000000000..e48c355dad --- /dev/null +++ b/.github/workflows/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 0b7fe6e9d6b165578c22ef974c218aeacc58e207 Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 3 Jan 2024 17:41:27 -0600 Subject: [PATCH 2/5] 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 e48c355dad..2e939a0181 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' - name: Build gem run: | gem build github-pages.gemspec From 9d5eafca3a4553d0e878e5bedd51e37b22a4e8e2 Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 3 Jan 2024 17:41:50 -0600 Subject: [PATCH 3/5] 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 d9249a5254..0323d522ef 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 bundler-cache: true - name: build run: script/bootstrap From cfd1a67f312c4b25a70f52f09b1e87fd7bda1edd Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Wed, 3 Jan 2024 17:42:03 -0600 Subject: [PATCH 4/5] 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 43d8fca894..8f51642ea5 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 From 9862f53ae1f79e1062eb1f90b9a1a9bc05da1cfe Mon Sep 17 00:00:00 2001 From: Fabian Aguilar Gomez Date: Fri, 5 Jan 2024 12:53:56 -0600 Subject: [PATCH 5/5] Update CONTRIBUTING.md --- docs/CONTRIBUTING.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index fed1ae7acf..3ee0c7c324 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.