docs: minor cleanup #19
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
npm install | |
npm run build | |
- uses: actions/checkout@v4 | |
with: | |
repository: punxaphil/maxi-media-player | |
token: ${{ secrets.PAT_TOKEN }} | |
path: mxmp | |
- name: Update MXMP repository | |
run: | | |
cd mxmp | |
cp ../dist-maxi-media-player/README.md . | |
rm -rf img | |
mkdir img | |
cp ../img/* img/ | |
git add -N . | |
diff=$(git diff) | |
if [ ! -z "$diff" ] | |
then | |
git config user.name "Johan Frick" | |
git config user.email "[email protected]" | |
git add . | |
git commit -am"updated README.md" | |
git push origin main | |
fi | |