Skip to content

Commit

Permalink
build documentation only once
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Aug 14, 2024
1 parent 9e61c66 commit a18a26e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 52 deletions.
41 changes: 0 additions & 41 deletions .github/actions/publish-docs/action.yml

This file was deleted.

27 changes: 16 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,26 @@ jobs:
# NPM_DRY_RUN: false
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Upload API Docs
uses: ./.github/actions/publish-docs
- name: Build documentation
run: npx typedoc
shell: bash

- name: Authenticate
uses: 'google-github-actions/auth@v2'
with:
docs_path: './docs/'
destination_path: "player/ui/${{ steps.extract-version.outputs.packageJsonVersion }}/"
bucket: ${{ secrets.GCS_BUCKET }}
credentials_json: ${{ secrets.GCS_CREDENTIALS }}

- name: Upload API Docs for major version
uses: ./.github/actions/publish-docs
- name: Upload docs
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
docs_path: './docs/'
destination_path: 'player/ui/3/'
bucket: ${{ secrets.GCS_BUCKET }}
credentials_json: ${{ secrets.GCS_CREDENTIALS }}
path: './docs/'
destination: "${{ secrets.GCS_BUCKET }}/player/ui/${{ steps.extract-version.outputs.packageJsonVersion }}"

- name: Upload docs for major version
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: './docs/'
destination: "${{ secrets.GCS_BUCKET }}/player/ui/3"

# - name: Notify team
# run: node .github/scripts/notifySlackTeam.js 'success' 'CHANGELOG.md' ${{ secrets.RELEASE_SUCCESS_SLACK_WEBHOOK }}
Expand Down

0 comments on commit a18a26e

Please sign in to comment.