update ci #5
This file contains hidden or 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: Run Podcast Script | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| run-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.9 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Export GEMINI_API_KEY and run script | |
| run: | | |
| export GEMINI_API_KEY="${{ secrets.GEMINI_API_KEY }}" | |
| python src/main.py | |
| - name: Upload podcast_series folder | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: podcast_series | |
| path: podcast_series/ |