From 735f0cda25f9a5752e743f4e4df8981a0f9d0a6b Mon Sep 17 00:00:00 2001 From: Greg King Date: Fri, 17 Jun 2022 01:44:40 -0400 Subject: [PATCH] Added Github action steps that update the online documentation repo. --- .github/workflows/snapshot-on-push-master.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/snapshot-on-push-master.yml b/.github/workflows/snapshot-on-push-master.yml index eaaa3101a..42b6513c0 100644 --- a/.github/workflows/snapshot-on-push-master.yml +++ b/.github/workflows/snapshot-on-push-master.yml @@ -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