Update radar API endpoint for live data #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Nuxt site to Pages | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Static HTML export with Nuxt | |
env: | |
NODE_ENV: production | |
NUXT_ENV_OPENWEATHER_API_KEY: ${{ secrets.NUXT_ENV_OPENWEATHER_API_KEY }} | |
NUXT_ENV_TIMEZONEDB_API_KEY: ${{ secrets.NUXT_ENV_TIMEZONEDB_API_KEY }} | |
run: npm run generate | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dist | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |