-
Notifications
You must be signed in to change notification settings - Fork 19
31 lines (28 loc) · 905 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Release
on:
release:
types: [ created ]
jobs:
release:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Cocoapods Release
run: |
pod repo add-cdn trunk 'https://cdn.cocoapods.org/'
pod trunk push CucumberSwift.podspec --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
- name: Generate DocC Static Site
run: |
swift package --allow-writing-to-directory ./docs \
generate-documentation --target CucumberSwift \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path CucumberSwift/ \
--output-path ./docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs