-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 979 Bytes
/
node.js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: build
on:
workflow_dispatch:
push:
schedule:
- cron: "0 0 * * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
# Update references
- name: Git Sumbodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: build
run: |
npm ci
npm run convert
npm run forecast -- ${{ secrets.OPENWEATERHMAP_API_KEY }} 48.5428 16.7606 Zistersdorf openweathermap-zistersdorf
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.1
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.