-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.6 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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' {} +
# Remove the
- 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'