Upload .env #7
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: | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: show directory contents | |
| run: | | |
| echo "Current directory: $(pwd)" | |
| echo "--- Root files ---" | |
| ls -al | |
| echo "--- All files recursively ---" | |
| find . -type f | |
| - name: Check .env exists | |
| run: | | |
| if [ ! -f .env ]; then | |
| echo "❌ .env not found!" | |
| exit 1 | |
| else | |
| echo "✅ .env exists" | |
| fi | |
| - name: Upload .env | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: envfile | |
| path: .env |