Skip to content

Commit

Permalink
added contents write permissions to GIT_TOKEN
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Kuidja <[email protected]>
  • Loading branch information
Marcjazz committed Oct 25, 2024
1 parent e9424b7 commit 2eebaf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master # Trigger workflow only on pushes to the main branch

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -26,8 +29,10 @@ jobs:
pip install mkdocs-material
# Build and deploy the site to GitHub Pages
- name: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
run: |
# sed -i -E "s/your-username/${{github.repository_owner}}/g" ./README.md
# sed -i -E "s/my-mkdocs-project/${{github.repository}}/g" ./README.md
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/ADORSYS-GIS/mk-docs.git
mkdocs gh-deploy --force

0 comments on commit 2eebaf6

Please sign in to comment.