Generic project to use with https://github.com/kovetskiy/mark along with GitHub actions.
.github/workflows/publish.yml
set the script in bin/publish.sh
to executable, and run the script.
The bin/publish.sh
runs on every commit. And use find
to find all markdown files *.md*
with a minimum search-depth of 4 (leaving place for generic files in the file-space below includes etc... ).
The lack of error-checking is a trade-off: Readability, and transparency is priority.
${GITHUB_WORKSPACE}
Root og filsystem wher everything happens.
${MARKFILE}
the local representation of your GitHub secrets containing your credentials as statet in the env section: MARKFILE: ${{ secrets.MARKFILE }}
Passwors are loaded as secrets in the MARKFILE variable and written .markfile at the root of working dir. The file is equivialent to ~/.config/mark
if running localy.
username = "your username here"
password = "your password here"
base_url = "https://<your site here>.atlassian.net/wiki