cheatingchelsea/.forgejo/workflows/deploy.yml
Derek Slenk c59575f597
Some checks failed
CI / test (push) Successful in 3m57s
Deploy / deploy (push) Failing after 2m38s
Fix CI/CD: Remove artifact upload step that was causing authentication errors
2025-07-16 11:35:56 -04:00

35 lines
No EOL
951 B
YAML

name: Deploy
on:
push:
branches: [ main, master ]
workflow_dispatch:
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build
env:
# Access YouTube API key from repository secrets
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
- name: Deploy to S3 (if configured)
run: |
if [ -n "${{ secrets.AWS_ACCESS_KEY_ID }}" ]; then
echo "Deploying to S3..."
npm run deploy:s3
else
echo "AWS credentials not configured, skipping S3 deployment"
fi
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}