Skip to content

Commit

Permalink
feat: add env file thru github action (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
libruce authored Apr 27, 2023
1 parent 2f494d2 commit 64b0634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: base64 -d <<<${{ secrets.PRODUCTION_ENV }} > .env.production
- run: yarn
- run: yarn build
- run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
Expand Down Expand Up @@ -51,4 +52,3 @@ jobs:
}
EOF
shell: bash

2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: base64 -d <<<${{ secrets.STAGING_ENV }} > .env.staging
- run: yarn
- run: yarn build
- run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
Expand Down Expand Up @@ -51,4 +52,3 @@ jobs:
}
EOF
shell: bash

0 comments on commit 64b0634

Please sign in to comment.