diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 430fe2583a..24793441b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,5 +17,5 @@ jobs: uses: actions/checkout@v3 - name: process run: make process - - name: build - run: make build + - name: export + run: make export diff --git a/.hecat.export.yml b/.hecat.export.yml new file mode 100644 index 0000000000..3653d4ea2f --- /dev/null +++ b/.hecat.export.yml @@ -0,0 +1,17 @@ +steps: + - name: export YAML data to awesome-selfhosted markdown + module: exporters/markdown_singlepage + module_options: + source_directory: ./ + output_directory: awesome-selfhosted + output_file: README.md + # authors_file: AUTHORS.md # optional, default no authors file + exclude_licenses: + - '⊘ Proprietary' + - 'BUSL-1.1' + - 'CC-BY-NC-4.0' + - 'CC-BY-NC-SA-3.0' + - 'CC-BY-ND-3.0' + - 'Commons-Clause' + - 'DPL' + - 'SSPL-1.0' diff --git a/Makefile b/Makefile index b63bda20f5..a0ae98bc9f 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,11 @@ process: install source .venv/bin/activate && \ hecat --config .hecat.process.yml -.PHONY: build # build markdown singlepage document from yaml data -build: install +.PHONY: export # export markdown singlepage document from yaml data +export: install rm -rf awesome-selfhosted && git clone https://github.com/awesome-selfhosted/awesome-selfhosted source .venv/bin/activate && \ - hecat export --source-directory ./ --output-directory awesome-selfhosted --output-file README.md + hecat --config .hecat.export.yml cd awesome-selfhosted && git diff --color=always .PHONY: help # generate list of targets with descriptions