improved detection of slow frames! #55
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: Update Distributables Branch | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: # Allows manual triggering | |
jobs: | |
update_distributables: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out main branch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all branches and history | |
- name: Set up git user | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Delete all contents in distributables branch | |
run: | | |
git checkout distributables || git checkout -b distributables | |
git rm -rf . # Remove all files in distributables branch | |
- name: Create pmma directory in distributables branch | |
run: mkdir -p pmma | |
- name: Copy contents from main branch | |
run: | | |
git checkout main -- cython_src python_src shaders resources __init__.py c_setup.py setup.py requirements.txt pyproject.toml MANIFEST.in LICENSE README.md | |
cp -r cython_src pmma/ | |
cp -r python_src pmma/ | |
cp -r shaders pmma/ | |
cp -r resources pmma/ | |
cp __init__.py pmma/__init__.py | |
cp c_setup.py pmma/c_setup.py | |
- name: Delete original files in distributables branch | |
run: | | |
rm -rf cython_src python_src shaders resources __init__.py c_setup.py | |
- name: Stage all changes (including deletions) | |
run: git add -A | |
- name: Commit and push changes to distributables branch | |
run: | | |
git add pmma | |
git commit -m "Update distributables branch with latest pmma content" | |
git push origin distributables --force |