1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-06 20:37:16 +00:00

Went back to using actions/checkout@v2.

(Direct cloning doesn't support pushing with a hidden token.)

I'm putting this aside, for now. A Personal Access Token must be made for the repository. "git push" does a dry-run, so that the workflow will succeed.
This commit is contained in:
Greg King 2022-06-17 18:24:42 -04:00 committed by mrdudz
parent 9dec4034e3
commit bcc8c5049b

@ -96,11 +96,16 @@ jobs:
name: cc65-snapshot-win64.zip
path: cc65-snapshot-win64.zip
- name: Get the online documents repo.
uses: actions/checkout@v2
with:
repository: cc65/doc
path: doc.git
- name: Update the online documents.
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git clone --depth 1 https://${GH_TOKEN}@github.com/cc65/doc.git doc.git
env
cd doc.git
rm *.*
cp ../html/*.* .
@ -109,7 +114,7 @@ jobs:
git config push.default simple
git add -A
git commit -m "Updated from cc65 commit ${GITHUB_SHA}."
git push -v
git push -n
# enter secrets under "repository secrets"
- name: Upload snapshot to sourceforge