Skip to content
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

Setup Github actions for use in SQM projects #2

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions .github/workflows/ci.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/gem-push.yml
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 }}
17 changes: 17 additions & 0 deletions .github/workflows/gem-version-check.yml
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"
2 changes: 1 addition & 1 deletion lib/bootstrap5/version.rb
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.33.1' # Bootstrap 5.3.3
BOOTSTRAP_SHA = '6e1f75f420f68e1d52733b8e407fc7c3766c9dba'
end
Loading