-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create publish-gem.yml #898
Changes from 20 commits
f3ee583
bb1d50e
ecb7a8a
31bce95
2d66a27
351e4a7
8c97daf
7337649
549fa79
d7615e1
a1e407c
3980c1a
90b989b
7c86cdb
d73437f
9ccadb7
8dd7a80
48da3d2
460897f
798d778
fa1b540
117fd75
ed0d437
91e261d
c31c982
47322fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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.3" | ||
- name: Build gem | ||
run: | | ||
gem build github-pages.gemspec | ||
- name: Publish | ||
run: | | ||
gem push github-pages.gem --key ${{ secrets.PAGES_GEM_PUBLISH }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ jobs: | |
strategy: | ||
matrix: | ||
ruby: | ||
- 2.6 | ||
- 2.7 | ||
- 3.0 | ||
- 3.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote these so they become strings when parsed rather than floats. |
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: script/cibuild-docker | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.3 | ||
3.3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
language: ruby | ||
rvm: | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
- 3.0 | ||
- 3.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you can remove this Travis config file entirely. |
||
|
||
branches: | ||
only: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG RUBY_VERSION=2.7.3 | ||
ARG RUBY_VERSION=3.3 | ||
FROM ruby:$RUBY_VERSION | ||
|
||
RUN apt-get update \ | ||
|
@@ -8,7 +8,8 @@ RUN apt-get update \ | |
make \ | ||
nodejs | ||
|
||
RUN gem update --system | ||
# final version for rubygems-update to supoprt ruby 2.7, consider removing this after upgraded to ruby 3.0 | ||
RUN gem update --system 3.4.22 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since you're upgrading in this PR, you can probably remove this. |
||
COPY .git /src/gh/pages-gem/.git | ||
COPY Gemfile* /src/gh/pages-gem/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ruby:2.7.3-alpine | ||
FROM ruby:3.3-alpine | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe CI is attempting to pass the RUBY_VERSION build arg, but here it's always ruby 3.3. Either remove the RUBY_VERSION arg from CI and script/cibuild-docker or support it here in Dockerfile. |
||
RUN apk update && apk add --no-cache \ | ||
git | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should only run when merge into master branch or tag release I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to instead run the job when we merge into
master
branch?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.