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