feat: add checks for .env file existence and readability in MacOS build workflow

This commit is contained in:
cheng zhen
2025-01-10 20:53:38 +08:00
parent c3e4ef3c56
commit f0275885af

View File

@@ -32,6 +32,9 @@ jobs:
- name: Copy and rename env file - name: Copy and rename env file
run: | run: |
cp .env.example dist/.env cp .env.example dist/.env
ls -la dist/.env || (echo "ENV file not found!" && exit 1)
cat dist/.env | head -n 1 || (echo "Cannot read ENV file!" && exit 1)
- name: Upload MacOS ARM artifact - name: Upload MacOS ARM artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4