.github/workflows/build-and-publish.yml in crowdin-api-1.6.0 vs .github/workflows/build-and-publish.yml in crowdin-api-1.7.0
- old
+ new
@@ -1,24 +1,25 @@
name: Build and Publish
on:
- push:
- tags:
- - '*'
+ release:
+ types: [published]
+ repository_dispatch:
+ types: [publish]
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- - name: Set up Ruby 2.6
+ - name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.6
+ ruby-version: 3.0
- run: bundle install
- name: Publish to RubyGems
run: |