Skip to content

Commit

Permalink
Add job to publish resulting gem to Epimorphics private repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtucker committed Jun 3, 2024
1 parent 0456941 commit 437124e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release and Publish Gem
on:
release:
types: [published]

jobs:
build:
name: "Build gem package"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Publish gem"
shell: bash
run: |
mkdir ~/.gem
echo '---' > ~/.gem/credentials
echo ':github: Bearer ${{ secrets.GIT_REPOSITORY_FULL_ACCESS_PAT }}' >> ~/.gem/credentials
chmod 0600 ~/.gem/credentials
make publish

0 comments on commit 437124e

Please sign in to comment.