Skip to content

12.0.0-rc.1

12.0.0-rc.1 #1

Workflow file for this run

name: Publish to RubyGems
on:
release:
types: [published]
jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Set up RubyGems
run: |
cat "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_TOKEN }}\n" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
- name: Build gem
run: gem build appwrite.gemspec
- name: Publish gem
run: gem push appwrite-*.gem