This commit is contained in:
2024-09-24 09:53:08 +02:00
parent 23d9b73b8f
commit 48b11f584f
+5 -3
View File
@@ -10,13 +10,15 @@ jobs:
pushdoc:
name: push_file
runs-on: ubuntu-latest
defaults:
env:
Greeting: Hello
branch: main
username: dutchie032
repo: dutchie032.github.io
defaults:
run:
working-directory: .
steps:
- name: Setup credentials to access private repositories
run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/
- name: Push generated webpage to another repository
run: git clone --single-branch --branch 'main'
run: git clone --single-branch --branch $branch https://github.com/$username/$repo