-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.92 KB
/
Copy pathnightly.yml
File metadata and controls
71 lines (60 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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