generated from EqualStreetNames/equalstreetnames-template
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.11 KB
/
deploy.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
name: Deploy
on:
workflow_dispatch:
push:
branches: [master]
workflow_run:
branches: [master]
workflows: ["Update data"]
types:
- completed
defaults:
run:
working-directory: website
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/equalstreetnames
persist-credentials: false
submodules: true
- run: npm install
- run: npm run build:switzerland:zurich
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
- name: Deploy
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPOSITORY_NAME: ${{ github.repository }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: 'website/dist/switzerland/zurich' # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch