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 7f5cb89 commit 4f5a645
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: AliyunpanSDK Release

on:
workflow_dispatch:
version:
description: 'release version'
required: true
type: string

permissions:
contents: read
pages: write
id-token: write

jobs:
release:
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: release
run: bundle exec fastlane release $VERSION
env:
VERSION: ${{ inputs.version }}
- name: Install Cocoapods
run: gem install cocoapods
- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

2 changes: 0 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ platform :ios do
description: release_log,
upload_assets: ["build/AliyunpanSDK-#{target_version}.zip"]
)

pod_push
end

lane :xcframework do |options|
Expand Down

0 comments on commit 4f5a645

Please sign in to comment.