1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-04 18:29:31 +00:00

Added Github action steps that update the online documentation repo.

This commit is contained in:
Greg King 2022-06-17 01:44:40 -04:00
parent 5aa75ae81f
commit 1628efd569

View File

@ -96,6 +96,21 @@ jobs:
name: cc65-snapshot-win64.zip
path: cc65-snapshot-win64.zip
- name: Update the online documents.
uses: actions/checkout@v2
with:
repository: cc65/doc
path: doc.git
- run: |
cd doc.git
rm *.*
cp ../html/*.* .
git config user.name "cc65-github"
git config user.email "cc65.nomail@github.com"
git config push.default simple
git add -A
git commit -m "Updated from cc65 commit $(GITHUB_SHA)." && git push -q || true
# enter secrets under "repository secrets"
- name: Upload snapshot to sourceforge
uses: nogsantos/scp-deploy@master
@ -106,6 +121,5 @@ jobs:
port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
# TODO: Update docs at https://github.com/cc65/doc
# TODO: Publish snapshot zip at https://github.com/cc65/cc65.github.io