-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (29 loc) · 928 Bytes
/
build.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
name: Build and Deploy
on:
push:
branches:
- release/v1.0
- main
jobs:
build-and-deploy:
if: github.actor != 'dependabot[bot]'
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install and Build 🔧
env:
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }}
run: |
cd _buildscripts
/usr/bin/python3 ./build.py
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.
branch: gh-pages # The branch the action should deploy to.
single-commit: true # need no history
clean-exclude: dev # preserve the dev folder