Skip to content

Commit

Permalink
ci: sorting steps
Browse files Browse the repository at this point in the history
  • Loading branch information
FazioNico committed Dec 15, 2023
1 parent 8bdbeda commit f977265
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ jobs:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- name: Extract NPM version
id: extract_version
uses: Saionaro/[email protected]

- 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: |

- 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
Expand All @@ -28,6 +30,7 @@ jobs:
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 f977265

Please sign in to comment.