TRIVIAL: docu bump for 1.5.0 #122
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Netlify Deploy Preview | |
on: | |
pull_request_target: | |
branches: | |
- 'rel/**' | |
- master | |
paths: | |
- 'docs/**' | |
env: | |
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }} | |
NETLIFY_SITE_NAME: ${{ github.event.repository.name }} | |
jobs: | |
netlify-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
path: 'PR-tmp' | |
- name: Get only changed docs | |
run: | | |
rsync --delete -av PR-tmp/docs/content/en/ docs/content/en/ | |
rm -rf PR-tmp | |
- name: Generate Versioned Docs | |
uses: gooddata/gooddata-python-sdk/.github/actions/hugo-build-versioned-action@master | |
with: | |
base-url: https://preview-${{ env.GITHUB_PR_NUMBER }}--${{ env.NETLIFY_SITE_NAME }}.netlify.app | |
keep-master: keep_master | |
fetch-from: upstream | |
- name: Publish | |
uses: netlify/actions/cli@master | |
with: | |
args: deploy -d docs/public --alias=preview-${{ env.GITHUB_PR_NUMBER }} | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_PREVIEW_AUTH_TOKEN }} | |
# `htmltest` is after publishing, so we can see the artifact. | |
- name: htmltest | |
run: | | |
rm -f htmltest.sh | |
wget https://raw.githubusercontent.com/gooddata/gooddata-python-sdk/master/scripts/htmltest.sh | |
chmod +x ./htmltest.sh | |
./htmltest.sh -c docs/.htmltest.yml docs/public | |
# Commented out, because it has been failing. Check up later. | |
# - name: Comment PR | |
# uses: thollander/actions-comment-pull-request@v2 | |
# with: | |
# message: | | |
# https://preview-${{ env.GITHUB_PR_NUMBER }}--${{ env.NETLIFY_SITE_NAME }}.netlify.app/ |