Skip to content

Commit

Permalink
no-jira_fixing-docs-deployment (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
frugoman authored Jun 27, 2022
1 parent feb04db commit 8cd3222
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/_build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ jobs:
if: steps.extract_git_tag.outputs.GIT_TAG == '' && github.ref == 'refs/heads/main'
run: ./scripts/build-docs pr_docs && rm -rf docs

- name: Build and verify docs (release)
if: github.event.release.tag_name != ''
run: ./scripts/build-docs $RELEASE_VERSION
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}

- name: Build and verify docs (pull request build)
if: steps.extract_git_tag.outputs.GIT_TAG == '' && github.ref != 'refs/heads/main'
run: ./scripts/build-docs $PR_VERSION
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
ref: main

- name: Install sourcekitten
run: brew install sourcekitten

- name: Set Ruby version
uses: ruby/setup-ruby@v1 # Sets ruby version via `.ruby-version`

Expand Down Expand Up @@ -67,9 +64,19 @@ jobs:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
LIB_VERSION: ${{ github.event.release.tag_name }}

- name: Build Docs
uses: ./.github/workflows/_build-docs.yml

- name: Pod Install
run: bundle exec pod install
working-directory: Example

- name: Install sourcekitten
run: brew install sourcekitten

- name: Build and verify docs (release)
if: github.event.release.tag_name != ''
run: ./scripts/build-docs $RELEASE_VERSION
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}

- name: Deploy code documentation
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 8cd3222

Please sign in to comment.