-
Notifications
You must be signed in to change notification settings - Fork 16
75 lines (61 loc) · 2.44 KB
/
essence-feature-stats.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
name: "tools/essence-feature-stats - Deploy to Github Pages"
on:
push:
branches:
- main # run for pushes to the main branch
workflow_dispatch:
pull_request:
paths:
- tools/essence-feature-usage-stats/**
env:
ESSENCE_DIR: "./EssenceRepos"
CONJURE_DIR: "./conjure"
CONJURE_REPO: "https://github.com/conjure-cp/conjure"
EXCLUDE_PATHS_REGEX: ".*autogen.*"
OUTPUT_PATH: "./web/static/index.html"
MAX_N_FILES: 5000
ESSENCE_FILE_REPOS: >
https://github.com/conjure-cp/EssenceCatalog::master,
https://github.com/conjure-cp/conjure::main"
KEYWORD_BLOCKLIST: >
mInfo,finds,givens,enumGivens,enumLettings,lettings,
unnameds,strategyQ,Auto,Interactive,strategyA,trailCompact,
nameGenState,nbExtraGivens,representations,representationsTree,
originalDomains,trailGeneralised,trailVerbose,trailRewrites,
mLanguage,language,version,mStatements,Name,Declaration,Op
jobs:
build:
name: "tools/essence-feature-stats: Build the tool and clone EssenceCatalog repo"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: pip install -r requirements.txt
working-directory: ./tools/essence-feature-usage-stats
- name: Run main.py to generate the table
run: python main.py
working-directory: ./tools/essence-feature-usage-stats
- name: Fix file permissions
run: chmod -v -R +rwx ./web/static/
working-directory: ./tools/essence-feature-usage-stats
- name: Add the .nojekyll file
run: touch ./web/static/.nojekyll
working-directory: ./tools/essence-feature-usage-stats
- name: Deploy to GitHub Pages
if: github.event_name == 'push' # Run this step only on push events
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: ./tools/essence-feature-usage-stats/web/static
target-folder: tools/essence-feature-usage-stats
commit-message: "Actions: Deploy the essence features usage table 🚀"