Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Aug 16, 2024
1 parent 8fb578f commit f175b1a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deploy_pages.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: Deploy to GitHub Pages

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

env:
NODE_VERSION: '18'

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

cache-dependency-path: './www/package-lock.json'

- name: Install dependencies
run: npm ci

run: |
cd www
npm ci
- name: Build project
run: npm run build
run: |
cd www
npm run build
env:
VITE_MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
with:
#github_token: ${{ secrets.GH_PAT }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./www/dist
commit_message: ${{ github.event.head_commit.message }}
force_orphan: true

Expand Down

0 comments on commit f175b1a

Please sign in to comment.