tools: switch deployment targets to awesome-selfhosted/awesome-selfhosted(-html) (#63)

- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/4
This commit is contained in:
nodiscc 2023-08-22 13:12:34 +00:00 committed by GitHub
parent a75baabff5
commit f40a4842ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -14,8 +14,8 @@ concurrency:
# Generate deploy keys locally:
# $ ssh-keygen -t rsa -f awesome-selfhosted-deploy-key -C awesome-selfhosted-deploy-key
# $ ssh-keygen -t rsa -f awesome-selfhosted-html-deploy-key -C awesome-selfhosted-html-deploy-key
# Paste the contents of awesome-selfhosted-deploy-key.pub to https://github.com/nodiscc/awesome-selfhosted/settings/keys/new, name: awesome-selfhosted-deploy-key, allow write access
# Paste the contents of awesome-selfhosted-html-deploy-key.pub to https://github.com/nodiscc/awesome-selfhosted-html-preview/settings/keys/new, name: awesome-selfhosted-html-deploy-key
# Paste the contents of awesome-selfhosted-deploy-key.pub to https://github.com/awesome-selfhosted/awesome-selfhosted/settings/keys/new, name: awesome-selfhosted-deploy-key, allow write access
# Paste the contents of awesome-selfhosted-html-deploy-key.pub to https://github.com/awesome-selfhosted/awesome-selfhosted-html/settings/keys/new, name: awesome-selfhosted-html-deploy-key
# Access https://github.com/awesome-selfhosted/awesome-selfhosted-data/settings/environments, create new environment with name: production
# - deployment branches: selected branches
# - add deployment branch rule: branch name pattern: master
@ -26,7 +26,7 @@ jobs:
build-markdown:
environment:
name: production
url: https://github.com/nodiscc/awesome-selfhosted
url: https://github.com/awesome-selfhosted/awesome-selfhosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -45,7 +45,7 @@ jobs:
build-html:
environment:
name: production
url: https://github.com/nodiscc/awesome-selfhosted-html-preview
url: https://github.com/awesome-selfhosted/awesome-selfhosted-html
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View file

@ -87,7 +87,7 @@ import import data from original list at https://github.com/awesome
update_metadata update metadata from project repositories/API
awesome_lint check data against awesome-selfhosted guidelines
export_markdown render markdown export from YAML data (https://github.com/awesome-selfhosted/awesome-selfhosted)
export_html render HTML export from YAML data (https://nodiscc.github.io/awesome-selfhosted-html-preview/)
export_html render HTML export from YAML data (https://awesome-selfhosted.net)
push_markdown commit and push changes to the markdown repository
push_html commit and push changes to the HTML site repository (amend previous commit and force-push)
url_check check URLs for dead links or other connection problems

View file

@ -1,7 +1,7 @@
# requirements: git bash make python3-pip python3-venv
SHELL := /bin/bash
MARKDOWN_REPOSITORY = nodiscc/awesome-selfhosted
HTML_REPOSITORY = nodiscc/awesome-selfhosted-html-preview
MARKDOWN_REPOSITORY = awesome-selfhosted/awesome-selfhosted
HTML_REPOSITORY = awesome-selfhosted/awesome-selfhosted-html
.PHONY: install # install build tools in a virtualenv
install:
@ -42,7 +42,7 @@ export_markdown:
source .venv/bin/activate && hecat --config .hecat/export-markdown.yml
cd awesome-selfhosted && git diff --color=always
.PHONY: export_html # render HTML export from YAML data (https://nodiscc.github.io/awesome-selfhosted-html-preview/)
.PHONY: export_html # render HTML export from YAML data (https://awesome-selfhosted.net/)
export_html:
rm -rf awesome-selfhosted-html-preview/ html/
git clone https://github.com/$(HTML_REPOSITORY)