fix: Updated docker version which supports displaying API. #11
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: Build documentation | |
on: | |
push: | |
# To trigger the workflow once you push to the `main` branch | |
# Replace `main` with your branch’s name | |
branches: [ "master" ] | |
# Specify to run a workflow manually from the Actions tab on GitHub | |
workflow_dispatch: | |
env: | |
# Name of module and id separated by a slash | |
INSTANCE: Writerside/flyte | |
# Replace HI with the ID of the instance in capital letters | |
ARTIFACT: webHelpFLYTE2-all.zip | |
# Docker image version | |
DOCKER_VERSION: 2.1.1588-p4414 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build Writerside docs using Docker | |
uses: JetBrains/writerside-github-action@v4 | |
with: | |
instance: ${{ env.INSTANCE }} | |
artifact: ${{ env.ARTIFACT }} | |
docker-version: ${{ env.DOCKER_VERSION }} | |
# - name: Upload artifact | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: artifact | |
# path: artifacts/${{ env.ARTIFACT }} | |
# retention-days: 7 | |
- name: Extract Files | |
run: 7z x artifacts/${{ env.ARTIFACT }} -ocf-pages | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: flyte-docs | |
directory: cf-pages | |
branch: master | |
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta` | |
wranglerVersion: '3' |