Skip to content

Commit 4fc6e67

Browse files
committed
fix jazzy docs to use tag for release number
1 parent dfc60a9 commit 4fc6e67

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ jobs:
128128
bundle install
129129
- name: Create Jazzy Docs
130130
run: ./Scripts/jazzy.sh
131+
env:
132+
BUILD_VERSION: '1.8.3'
131133

132134
cocoapods:
133135
needs: xcode-build-watchos

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ jobs:
3939
run: |
4040
bundle config path vendor/bundle
4141
bundle install
42+
- name: Get release version
43+
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
4244
- name: Create Jazzy Docs
4345
run: ./Scripts/jazzy.sh
46+
env:
47+
BUILD_VERSION: ${{ env.TAG }}
4448
- name: Deploy Jazzy Docs
4549
uses: peaceiris/actions-gh-pages@v3
4650
with:

Scripts/jazzy.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
ver=`cat ParseSwift.xcodeproj/project.pbxproj | grep -m1 'MARKETING_VERSION' | cut -d'=' -f2 | tr -d ';' | tr -d ' '`
21
bundle exec jazzy \
32
--clean \
43
--author "Parse Community" \
54
--author_url http://parseplatform.org \
65
--github_url https://github.com/parse-community/Parse-Swift \
76
--root-url http://parseplatform.org/Parse-Swift/api/ \
8-
--module-version ${ver} \
7+
--module-version ${BUILD_VERSION} \
98
--theme fullwidth \
109
--skip-undocumented \
1110
--output ./docs/api \

0 commit comments

Comments
 (0)