forked from twbs/bootstrap-rubygem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Github actions for use in SQM projects
This replaces the Github actions used by the official Bootstrap repo with ones that allow us to maintain and publish the gem in the SQM package repo. The actions are the same as the ones we use for our own gems, with the following small differences: 1. Bootstrap uses "main" instead of "master" for its release branch. 2. Using Bootstrap's Rake task for building the gem. 3. Releasing the packaged gem from the `pkg` directory. This should ensure that the modified gem that we use is a close as possible to the official Bootstrap release. This also updates the gem's version number, using the fourth position to designate the custom SQM version. [1207966452799142](https://app.asana.com/0/0/1207966452799142/f)
- Loading branch information
Showing
4 changed files
with
47 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build and Push Gem | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Build + Publish | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby 3.3 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.3 | ||
|
||
- name: Publish to Github Package Registry | ||
run: | | ||
mkdir -p $HOME/.gem | ||
touch $HOME/.gem/credentials | ||
chmod 0600 $HOME/.gem/credentials | ||
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials | ||
rake build | ||
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} pkg/*.gem | ||
env: | ||
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}" | ||
OWNER: ${{ github.repository_owner }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Verify Gem Version Change | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Version Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Version Forget Me Not | ||
uses: simplybusiness/version-forget-me-not@v2 | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION_FILE_PATH: "lib/bootstrap5/version.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
module Bootstrap5 | ||
VERSION = '5.3.3' | ||
VERSION = '5.3.3.1' | ||
BOOTSTRAP_SHA = '6e1f75f420f68e1d52733b8e407fc7c3766c9dba' | ||
end |