feat: add checks for .env file existence and readability in MacOS build workflow
This commit is contained in:
3
.github/workflows/build.mac.yml
vendored
3
.github/workflows/build.mac.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user