Upload .env #6
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: Upload .env | |
| on: | |
| workflow_dispatch: # This allows manual run from GitHub | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Show contents of root folder (debug step) | |
| run: | | |
| echo "Files in current directory:" | |
| ls -al | |
| - name: Check if .env exists | |
| run: | | |
| if [ ! -f .env ]; then | |
| echo "❌ ERROR: .env not found at root!" | |
| exit 1 | |
| else | |
| echo "✅ .env found." | |
| fi | |
| - name: Upload .env as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: envfile | |
| path: .env |