Feature/brd 20938 GitHub packages (#122) #3
Workflow file for this run
This file contains hidden or 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
| name: Publish to GitHub Gems | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| publish: | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Build gem | |
| run: gem build scorm_engine.gemspec | |
| - name: Publish to GitHub Packages | |
| env: | |
| GEM_HOST_API_KEY: ${{ secrets.GIT_HUB_PACKAGES_TOKEN }} | |
| run: | | |
| gem push --host https://rubygems.pkg.github.com/get-bridge *.gem |