mirror of
https://github.com/aljazceru/hacker-gh-pages-theme.git
synced 2026-01-31 12:04:22 +01:00
Merge pull request #1 from pages-themes/master
catching up with upstream
This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -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
|
||||
|
||||
22
.github/workflows/publish-gem.yml
vendored
Normal file
22
.github/workflows/publish-gem.yml
vendored
Normal file
@@ -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: '3.2'
|
||||
- name: Build gem
|
||||
run: |
|
||||
gem build github-pages.gemspec
|
||||
- name: Publish
|
||||
run: |
|
||||
gem push github-pages.gem --key ${{ secrets.PAGES_GEM_PUBLISH }}
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user