Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Mar 22, 2024
1 parent 63a654d commit 36dd5ba
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,15 @@ name: Deploy

on:
workflow_dispatch:
push:
branches: [master]
workflow_run:
branches: [master]
workflows: ["Update data"]
types:
- completed

defaults:
run:
working-directory: website
types: [completed]

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/github-pages-deploy-action@3.6.2
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
deploy:
uses: EqualStreetNames/equalstreetnames/.github/workflows/reusable-deploy.yml@master
secrets: inherit
with:
country: switzerland
city: zurich

0 comments on commit 36dd5ba

Please sign in to comment.