Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
CI my new hobby
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu committed Nov 5, 2020
1 parent 274e4e4 commit 758cf71
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
name: Documentation

on:
release:
types: [ published ]
on: release

jobs:
pod:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Publish to CocoaPods Trunk
run: pod trunk push
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
docs:
jazzy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pod.yml → .github/workflows/pod-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CocoaPods
name: CocoaPods Lint

on: [push, pull_request]

Expand All @@ -7,5 +7,5 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Lint CocoaPods
- name: Lint Pod Spec
run: pod lib lint
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

on:
release:
types: [ published ]

jobs:
pod:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Publish to CocoaPods Trunk
run: pod trunk push
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 comments on commit 758cf71

Please sign in to comment.