Skip to content

🌙 Nightly Build

🌙 Nightly Build #32

Workflow file for this run

name: 🌙 Nightly Build
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
nightly-build:
name: 🌙 Nightly Build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: 🔧 Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install pillow customtkinter cryptography argon2-cffi qrcode[pil] requests psutil
- name: 📅 Get date for nightly build
id: date
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash
- name: 📝 Update version to nightly
run: |
NIGHTLY_VERSION="4.0.0-nightly.${{ steps.date.outputs.date }}"
if [ -f "utils/updater.py" ]; then
sed -i "s/CURRENT_VERSION = \".*\"/CURRENT_VERSION = \"$NIGHTLY_VERSION\"/" utils/updater.py
fi
echo "Nightly version: $NIGHTLY_VERSION"
shell: bash
- name: 🏗️ Build with PyInstaller
run: python build.py
- name: 🔐 Generate checksums
run: |
cd dist
if [ "${{ runner.os }}" = "Windows" ]; then
certutil -hashfile * SHA256 > checksums.txt
else
shasum -a 256 * > checksums.txt
fi
shell: bash
- name: 📦 Upload nightly artifacts
uses: actions/upload-artifact@v4
with:
name: SecurePassPro-Nightly-${{ runner.os }}-${{ steps.date.outputs.date }}
path: dist/
retention-days: 7
- name: 🗑️ Clean old nightly releases (if using GitHub Release)
if: runner.os == 'ubuntu-latest'
run: |
echo "Nightly build completed for ${{ runner.os }}"
shell: bash