Skip to content

Merge pull request #1 from vertigis/pr-test #27

Merge pull request #1 from vertigis/pr-test

Merge pull request #1 from vertigis/pr-test #27

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_run:
branches:
- master
types:
- completed
workflows:
- Artifact
workflow_dispatch: {}
permissions:
contents: write
pages: write
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
ref: artifact
path: artifact
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt -y install jq pandoc
pandoc -v
bash ./build.sh
ls -l dist
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist -f
git commit -m gh-pages-split
git subtree split --prefix dist -b gh-pages-split
target=gh-pages
[ -n "$GITHUB_HEAD_REF" ] && target=gh-pages-preview
git push origin gh-pages-split:$target -f