Skip to content

separate step

separate step #20

Workflow file for this run

name: "Deploy Anima Addon"
on: push
jobs:
deploy-anima-addon:
name: Depoly Anima
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy addon files
run: |
git clone https://ceceppa:${{ secrets.TOKEN }}@github.com/ceceppa/anima-godot-4.git
cd anima-godot-4
git config user.name "GitHub Actions Bot"
git config user.email "<[email protected]>"
rm -rf *
cp -r ../addons .
cp ../LICENSE .
cp ../README.ADDON-REPO.md README.md
git add .
uncommitted=$(git status --porcelain | grep -E "^( M |A )")
if [[ -z "$uncommitted" ]]; then
echo "No changes to commit"
exit 0
fi
git commit -m "Update addon files"
git push origin main
exit 0