Skip to content

feat: add api tokens management #402

feat: add api tokens management

feat: add api tokens management #402

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:
group: infra1-runners-arc
labels: runners-rxa-xlarge
steps:
- name: "Checkout Recursive"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Checkout to PR-tmp"
uses: actions/checkout@v4
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 Docs"
uses: gooddata/gooddata-python-sdk/.github/actions/hugo-build-action@master
with:
base-url: https://preview-${{ env.GITHUB_PR_NUMBER }}--${{ env.NETLIFY_SITE_NAME }}.netlify.app
- name: "Publish"
uses: netlify/actions/cli@master
with:
args: deploy -d docs/public --alias=preview-${{ env.GITHUB_PR_NUMBER }}
env:
NETLIFY_SITE_ID: 93e23db0-d31a-4a12-801a-b9479ffef486 # Not a secret
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_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