Upload .env #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: Upload .env | |
| on: | |
| workflow_dispatch: # allows you to run it manually from GitHub | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Show working directory (for debug) | |
| run: | | |
| echo "Current directory:" | |
| pwd | |
| echo "Files:" | |
| ls -al | |
| - name: Check if .env file exists | |
| run: | | |
| if [ ! -f .env ]; then | |
| echo "ERROR: .env file not found at the repo root!" | |
| exit 1 | |
| fi | |
| - name: Upload .env file as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: envfile | |
| path: .env |