27 lines
673 B
YAML
27 lines
673 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
node-version: '12.x'
|
|
|
|
- name: Build datasets
|
|
env:
|
|
PORTAL_REPO_NAME: ${{ secrets.PORTAL_REPO_NAME }}
|
|
run: |
|
|
curl https://raw.githubusercontent.com/datopian/portaljs/main/site/public/scripts/single-dataset-no-commit.sh > portal.sh
|
|
git config --local user.email "$(git log --format='%ae' HEAD^!)"
|
|
git config --local user.name "$(git log --format='%an' HEAD^!)"
|
|
source ./portal.sh
|