Skip to content

Commit

Permalink
Merge pull request #18 from pages-themes/publish-gem
Browse files Browse the repository at this point in the history
Create publish-gem.yml
  • Loading branch information
tsusdere committed Jan 19, 2024
2 parents 87501a6 + c86d6d1 commit 2663ac3
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/publish-gem.yml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 6 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=640">

<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" media="screen">
<link rel="stylesheet" href="{{ '/assets/css/mobile.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
<link rel="stylesheet" href="{{ '/assets/css/non-screen.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
<link rel="stylesheet" href="{{ '/assets/css/mobile.css' | relative_url }}" media="only screen and (max-width:640px)">
<link rel="stylesheet" href="{{ '/assets/css/non-screen.css' | relative_url }}" media="only screen and (max-width:640px)">

<script src="{{ '/assets/js/modernizr.js' | relative_url }}"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
Expand All @@ -28,14 +28,14 @@
<div class="shell">

<header>
<span class="ribbon-outer">
<span class="ribbon-inner">
<div class="ribbon-outer">
<div class="ribbon-inner">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
</span>
</div>
<span class="left-tail"></span>
<span class="right-tail"></span>
</span>
</div>
</header>

{% if site.show_downloads %}
Expand Down
3 changes: 1 addition & 2 deletions _sass/jekyll-theme-merlot.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "screen";
@import "rouge-base16-solarized";
@import url("non-screen.css") handheld;
@import url("non-screen.css") only screen and (max-device-width:640px);
@import url("non-screen.css") only screen and (max-width:640px);
3 changes: 3 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion script/validate-html
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2663ac3

Please sign in to comment.