Skip to content

Merge pull request #37 from Clonkk/fix-ci #56

Merge pull request #37 from Clonkk/fix-ci

Merge pull request #37 from Clonkk/fix-ci #56

Workflow file for this run

on:
push:
branches:
- master
jobs:
gh-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: "gh-pages"
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: stable
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble install -y
- name: Set CI config github
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Fetch
run: git fetch
- name: Rebase
run: git rebase -Xours origin/master
- name: Gendoc
run: nimble gendoc -y
- name: Commit files
run: |
echo ${{ github.ref }}
git add docs
git commit -m "CI: Automated build push" -a | exit 0
- name: Force push to destination branch
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./docs