This commit is contained in:
2024-09-24 09:52:17 +02:00
parent 93cafa4b82
commit 23d9b73b8f
+4 -10
View File
@@ -7,22 +7,16 @@ on:
- main - main
jobs: jobs:
build: pushdoc:
name: push_file name: push_file
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
env:
Greeting: Hello
run: run:
working-directory: . working-directory: .
steps: steps:
- name: Setup credentials to access private repositories - name: Setup credentials to access private repositories
run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/ run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/
- name: Push generated webpage to another repository - name: Push generated webpage to another repository
uses: nkoppel/push-files-to-another-repository@v1.1.3 run: git clone --single-branch --branch 'main'
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-files: 'DOC.md'
destination-username: 'dutchie032'
destination-repository: 'dutchie032.github.io'
destination-directory: 'spearhead'
commit-email: 'timrorije@gmail.com'