Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wzxha committed Jan 8, 2024
1 parent 81bed5b commit e3f5288
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 43 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy_to_cocoapods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to Cocoapods

on:
push:
tags:
- '*'

jobs:
build:

runs-on: macOS-latest

steps:
- uses: actions/checkout@v1

- name: Install Cocoapods
run: gem install cocoapods

- name: Deploy to Cocoapods
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macOS-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.4
bundler-cache: true
- name: Checkout
uses: actions/checkout@v4
- name: Install Jazzy
run: gem install jazzy
- name: Generate Document
run: bundle exec fastlane doc
run: jazzy
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down

0 comments on commit e3f5288

Please sign in to comment.