45 lines
937 B
YAML
45 lines
937 B
YAML
name: Publish on Tag
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
cocoapods:
|
|
name: Push To CocoaPods
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v3
|
|
-
|
|
name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
-
|
|
name: Push to CocoaPods
|
|
run: bundle exec rake release:cocoapods
|
|
env:
|
|
COCOAPODS_TRUNK_TOKEN: ${{secrets.COCOAPODS_TRUNK_TOKEN}}
|
|
|
|
github:
|
|
name: GitHub Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v3
|
|
-
|
|
name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
-
|
|
name: Create release on GitHub
|
|
run: bundle exec rake release:github
|
|
env:
|
|
DANGER_GITHUB_API_TOKEN: ${{ secrets.danger_github_api_token }}
|