Skip to content

Commit

Permalink
fix: add deploy workflow to staging branch
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Apr 26, 2024
1 parent 5db1727 commit 6c0af68
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: deploy

on:
schedule:
- cron: '42 */12 * * *'
push:
branches: [ main ]
repository_dispatch:
types: [ deploy_master ]
workflow_dispatch:

jobs:
build:
name: Build site
runs-on: ubuntu-latest

steps:
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
- uses: actions/checkout@master
- name: Build
run: |
npx @paneron/[email protected] --outdir dist --datadir geolexica
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 6c0af68

Please sign in to comment.