Skip to content

Commit

Permalink
feat: added README sync with gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzgniadek authored Aug 16, 2024
1 parent 3febee9 commit 3a4483b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- 'master'
paths:
- 'README.md'

jobs:
build:
permissions:
contents: write # for git push

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cp -f README.md ${{ runner.temp }}/README.md
- uses: actions/checkout@v4
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/README.md .
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add README.md
git commit --signoff -m "Sync README from master"
git push

0 comments on commit 3a4483b

Please sign in to comment.