refactor: Remove manual import button and ensure HTML always uses Rip… #44
This file contains hidden or 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: Publish to GitHub | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Git | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "actions@github.com" | |
| - name: Initialize git if needed | |
| run: | | |
| if [ ! -d .git ]; then | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| fi | |
| - name: Push to AnEntrypoint/gmgui | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| git remote add upstream https://github.com/AnEntrypoint/gmgui.git 2>/dev/null || true | |
| git branch -M main 2>/dev/null || true | |
| git push -u upstream main --force 2>/dev/null || echo "Push may require authentication" |