Merge pull request #12 from flytegg/fix/contributing_page #19
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: 232.10165.1 | |
# Custom primary color for pages | |
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: Extract Files | |
run: 7z x artifacts/${{ env.ARTIFACT }} -ocf-pages | |
- name: Replace Text | |
run: | | |
# Set primary color of website to Flyte Pink | |
find cf-pages/ -type f -exec sed -i 's/#DE3358/#F37BDA/g' {} + | |
- 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' | |