Skip to content

Commit

Permalink
chore: Update build process to create .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
yosvelquintero committed Jun 23, 2024
1 parent 3bab960 commit 8ff0ac1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Create .env file
run: |
echo "${{ secrets.ENV_FILE_CONTENT }}" > .env
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
Expand All @@ -21,6 +17,10 @@ jobs:
- name: Install Dependencies
run: npm ci --legacy-peer-deps

- name: Create .env file
run: |
echo "${{ secrets.ENV_FILE_CONTENT }}" > .env
- name: Build
run: npm run console:build:prod

Expand All @@ -40,6 +40,10 @@ jobs:
echo ::set-output name=version_tag::$(echo ${GITHUB_REF#refs/*/})
echo ::set-output name=repo_name::$(echo ${GITHUB_REPOSITORY#*/*})
- name: Create .env file
run: |
echo "${{ secrets.ENV_FILE_CONTENT }}" > .env
- name: Build
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 8ff0ac1

Please sign in to comment.