Skip to content

Commit

Permalink
merge all updates (#16)
Browse files Browse the repository at this point in the history
merge all
  • Loading branch information
FazioNico authored Dec 15, 2023
1 parent fe87cd4 commit 694afaf
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,29 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: "Set current date as env variable"
run: |
echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
id: version # this is used on variable path

- uses: actions/checkout@v3
- run: npm ci && npm run build

- name: Extract NPM version
id: extract_version
uses: Saionaro/[email protected]

- name: Set Environement and Build
run: |
touch .env.local
echo NEXT_PUBLIC_APP_ONBOARD_APIKEY=${{ secrets.NEXT_PUBLIC_APP_ONBOARD_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_ANKR_APIKEY=${{ secrets.NEXT_PUBLIC_APP_ANKR_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_VERSION=${{ steps.extract_version.outputs.version }} >> .env.local
echo NEXT_PUBLIC_APP_BUILD_DATE=${{ steps.version.outputs.builddate }} >> .env.local
echo NEXT_PUBLIC_APP_IS_PROD=true >> .env.local
npm ci && npm run build
env:
CI: false

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down

0 comments on commit 694afaf

Please sign in to comment.