-
-
Notifications
You must be signed in to change notification settings - Fork 386
38 lines (36 loc) · 1.45 KB
/
build-website.yml
File metadata and controls
38 lines (36 loc) · 1.45 KB
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
on:
pull_request_target:
types: [opened, synchronize, reopened, labeled]
branches:
- master
push:
branches:
- master
name: Build website
jobs:
#----------------------------------------------------------------------------
# Build website
#----------------------------------------------------------------------------
build_website:
name: Build website
if: github.event_name == 'push' ||
contains(github.event.pull_request.labels.*.name, 'ci:fast') ||
contains(github.event.pull_request.labels.*.name, 'ci:main') ||
contains(github.event.pull_request.labels.*.name, 'ci:full')
runs-on: ubuntu-latest
steps:
- name: Set WEBSITE_SKIP_DEPLOY
shell: bash
run: echo "WEBSITE_SKIP_DEPLOY=${{ github.ref == 'refs/heads/master' && github.event_name == 'push' && 'false' || 'true' }}" >> $GITHUB_ENV
- name: Trigger docker images build
uses: convictional/[email protected]
with:
owner: f3d-app
repo: f3d-website
github_token: ${{ secrets.F3D_WEBSITE_CI_DISPATCH }}
workflow_file_name: static.yml
wait_interval: 60
client_payload: '{"skip_deploy": "${{ env.WEBSITE_SKIP_DEPLOY }}" , "docs_tag": "${{github.event.pull_request.head.ref}}", "docs_repository": "${{github.event.pull_request.head.repo.full_name}}" }'
propagate_failure: true
trigger_workflow: true
wait_workflow: true