Skip to content

glofas v4 ready

glofas v4 ready #25

Workflow file for this run

name: Build and Deploy
on:
push:
tags:
- "*.*.*"
# Allow one concurrent deployment
concurrency:
group: "deploy"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 19
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm run rename_index_files
- name: Install LFTP
run: sudo apt update && sudo apt -qq -y install lftp
- name: Upload ftp
run: lftp storage.bunnycdn.com -u open-meteo,${{ secrets.ftp_password }} -e "set ftp:ssl-force false; set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ build .; quit"
- run: "curl --request POST --url https://api.bunny.net/pullzone/1309127/purgeCache --header 'AccessKey: ${{ secrets.bunny_api_key }}' --header 'content-type: application/json'"