-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1.06 KB
/
python-app.yml
File metadata and controls
36 lines (29 loc) · 1.06 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
name: Run Screen Mirror on Workflow Dispatch
on:
workflow_dispatch: # This allows manual trigger from the GitHub UI
jobs:
run-screen-mirror:
runs-on: macos-latest # You can also use other runners like 'windows-latest' if needed
steps:
# Step 1: Checkout the code from the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Python environment
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyautogui supabase pillow
# Step 4: Set up environment variables from GitHub Secrets
- name: Set up environment variables
run: |
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> $GITHUB_ENV
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> $GITHUB_ENV
# Step 5: Run the screen-mirroring script
- name: Run screen-mirroring script
run: |
python main.py