Skip to content
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
37 changes: 23 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,45 @@ jobs:

name: Release to rubygems
steps:
- name: Read Configuration
-
name: Read Configuration
uses: hashicorp/vault-action@v3
id: vault
with:
url: ${{ env.VAULT_ADDR }}
token: ${{ secrets.VAULT_TOKEN }}
secrets: |
kv/data/rubygems "RUBYGEMS_API_KEY" | GEM_HOST_API_KEY;

- name: Checkout
kv/data/github "USERNAME" | GH_USERNAME;
kv/data/github "READ_WRITE_TOKEN" | GH_TOKEN;
-
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CODEGEN_APP_ID }}
private-key: ${{ secrets.CODEGEN_APP_KEY }}
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0


- name: Install dependencies
token: ${{ steps.app-token.outputs.token }}
-
name: Install dependencies
run: make deps

- name: Set up Ruby
-
name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3

- name: Build and push the gem
-
name: Build and push the gem
run: make release

- name: Bump to the next version
-
name: Bump to the next version
run: make bump-version

- name: Commit changes
-
name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.31.4
0.31.6
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ build:
.PHONY: bump-version
bump-version:
@echo -e "$(ATTN_COLOR)==> $@ $(NO_COLOR)"
@${EXT_BIN_DIR}/svu patch --prefix="" > ./VERSION
@${EXT_BIN_DIR}/svu patch > ./VERSION

.PHONY: push
push:
Expand Down