Skip to content

EA Graphics Manager Nightly Build #190

EA Graphics Manager Nightly Build

EA Graphics Manager Nightly Build #190

Workflow file for this run

name: EA Graphics Manager Nightly Build
permissions:
contents: write
on:
push:
branches: [ "master", "main" ]
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
pull_request:
types: [closed]
branches: [ "master", "main" ]
concurrency:
group: nightly
cancel-in-progress: true
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Set NIGHTLY_STR env variable
shell: pwsh
run: |
"NIGHTLY_STR=(NIGHTLY)" >> $env:GITHUB_ENV
- name: Build EXE (make_exe.bat)
run: |
echo Running make_exe script...
src\scripts\make_exe.bat
shell: cmd
- name: Zip build (7-Zip with progress)
shell: cmd
run: |
7z a build_final\EA_Graphics_Manager.zip build_final\*
- name: Move nightly tag to latest commit
run: |
git tag -f nightly
git push origin nightly --force
- name: Set build date
shell: pwsh
run: |
"BUILD_DATE=$(Get-Date -Format yyyy-MM-dd)" >> $env:GITHUB_ENV
- name: Create or update Nightly Release
uses: softprops/action-gh-release@v2
with:
tag_name: nightly
name: Nightly Build (${{ env.BUILD_DATE }})
body: |
⚠️ This is an **automatically generated nightly build**.
- Built from the latest commit on `master/main`
- May be unstable!
- For testing purposes only!
Commit: ${{ github.sha }}
files: |
build_final/EA_Graphics_Manager.zip
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}