feat: prepare github action workflows #1 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'README sync' | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'gh-pages-readme.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
cp -f gh-pages-readme.md ${{ runner.temp }}/README.md | |
- uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
- run: | | |
cp -f ${{ runner.temp }}/README.md . | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
git add README.md | |
git commit --signoff -m "Sync README from main" | |
git push |