mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-20 19:12:02 +00:00
Fix docs update action
Make script executable (facepalm) Fix `run**s**-on` typo Add key using ssh-agent Force using SSH for pushing back
This commit is contained in:
1 parent
bb6a5441ed
commit
0cc9026978
2 files changed
+9
-2
No files matched your search
Regular → Executable
File mode changed.
@@ -16,7 +16,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
run-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout rgbds@master
|
- name: Checkout rgbds@master
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -44,8 +44,15 @@ jobs:
|
|||||||
mkdir -p -m 700 ~/.ssh
|
mkdir -p -m 700 ~/.ssh
|
||||||
echo "${{ secrets.SSH_KEY_SECRET }}" > ~/.ssh/id_ed25519
|
echo "${{ secrets.SSH_KEY_SECRET }}" > ~/.ssh/id_ed25519
|
||||||
chmod 0600 ~/.ssh/id_ed25519
|
chmod 0600 ~/.ssh/id_ed25519
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
ssh-add ~/.ssh/id_ed25519
|
||||||
git config --global user.name "GitHub Action"
|
git config --global user.name "GitHub Action"
|
||||||
git config --global user.email "[email protected]"
|
git config --global user.email "[email protected]"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update RGBDS master documentation"
|
git commit -m "Update RGBDS master documentation"
|
||||||
git push
|
if git remote | grep -q origin; then
|
||||||
|
git remote set-url origin [email protected]:gbdev/rgbds-www.git
|
||||||
|
else
|
||||||
|
git remote add origin [email protected]:gbdev/rgbds-www.git
|
||||||
|
fi
|
||||||
|
git push origin master
|
||||||
Reference in new issue
Block a user