Update ubuntu in Github Actions to latest LTS (24.04) #2
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
name: 'Publish (manual)' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tag to publish (scip-ruby-vM.N.P)' | ||
type: string | ||
jobs: | ||
download-and-publish-gems: | ||
name: 'Download and publish gems' | ||
runs-on: 'ubuntu-24.04 | ||
env: | ||
TAG: ${{ inputs.tag }} | ||
steps: | ||
- name: 'Download release artifacts' | ||
run: gh release download ${{ env.TAG }} --pattern '*.gem' --repo sourcegraph/scip-ruby | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: 'Publish gems' | ||
run: | | ||
for g in *.gem; do | ||
GEM_HOST_API_KEY=${{ secrets.RUBYGEMS_API_KEY }} gem push "$g" | ||
done |