forked from Juanpe/SkeletonView
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix validations fix SwiftLint * add PrivacyInfo.xcprivacy * fix iPhone version to build * fix bug on Xcode 16 - iOS12 * remove strict swiftlint * fix Twiteet step on release workflow * revert validations jobs * release xcframework for default * add manual * change CD
- Loading branch information
1 parent
917a9b2
commit efa541e
Showing
3 changed files
with
105 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,11 @@ | ||
name: CD | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request_target: | ||
branches: [main] | ||
types: [closed] | ||
|
||
jobs: | ||
release_version: | ||
if: github.event.pull_request.milestone == null && github.event.pull_request.merged == true | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Publish release | ||
id: publish_release | ||
uses: release-drafter/release-drafter@v5 | ||
with: | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Update podspec | ||
run: fastlane bump_version next_version:${{ steps.publish_release.outputs.tag_name }} | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: 'main' | ||
commit_message: 'Bump version ${{ steps.publish_release.outputs.tag_name }}' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy to Cocoapods | ||
continue-on-error: true | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
run: | | ||
set -eo pipefail | ||
pod lib lint --allow-warnings | ||
pod trunk push --allow-warnings | ||
- name: Tweet the release | ||
uses: ethomson/send-tweet-action@v1 | ||
with: | ||
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | ||
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | ||
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
status: | | ||
🎉 New release ${{ steps.publish_release.outputs.tag_name }} is out 🚀 | ||
Check out all the changes here: | ||
${{ steps.publish_release.outputs.html_url }} | ||
jobs: | ||
call_reusable_workflow: | ||
uses: ./.github/workflows/release.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters