-
Notifications
You must be signed in to change notification settings - Fork 10
77 lines (73 loc) · 2.27 KB
/
publish-reports.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Publish compliance reports
on:
# see https://docs.github.com/en/actions/using-workflows/reusing-workflows#creating-a-reusable-workflow
workflow_call:
inputs:
type:
description: 'If a workflow that calls this workflow is called via workflow_dispatch, it should pass this property'
required: true
default: 'nothing'
type: string
workflow_dispatch:
inputs:
type:
description: 'Emulate either schedule, push, or pull_request'
required: true
default: 'schedule'
type: choice
options:
- schedule
- push
- pull_request
jobs:
# Deploy to gh pages branch
push-reports-to-gh-pages:
runs-on: ubuntu-latest
if: (github.event.inputs.type == 'push' || github.event_name == 'push') && github.ref == 'refs/heads/main'
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
steps:
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-pinata
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-nft
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-web3
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-filebase
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-crust
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-4everland
- name: Reports Cache
uses: actions/cache@v4
with:
path: docs
key: ${{ github.sha }}-scaleway
- name: Scheduled deployment
uses: s0/git-publish-subdir-action@92faf786f11dfa44fc366ac3eb274d193ca1af7e
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SQUASH_HISTORY: false
MESSAGE: "Update published reports with changes from {sha} with message:\n{msg}"
SKIP_EMPTY_COMMITS: false