From e9e1df64a1ab77e1aee569a24de77d62c466a0dd Mon Sep 17 00:00:00 2001 From: Rising Odegua Date: Thu, 15 Apr 2021 16:17:00 +0100 Subject: [PATCH] Add actions script to build dataset page --- scripts/actions/single-dataset-ssg.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/actions/single-dataset-ssg.yml diff --git a/scripts/actions/single-dataset-ssg.yml b/scripts/actions/single-dataset-ssg.yml new file mode 100644 index 00000000..0ced09ab --- /dev/null +++ b/scripts/actions/single-dataset-ssg.yml @@ -0,0 +1,26 @@ +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/portal.js/main/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