Skip to content

build(deps): bump actions/deploy-pages from 2.0.4 to 3.0.1 #196

build(deps): bump actions/deploy-pages from 2.0.4 to 3.0.1

build(deps): bump actions/deploy-pages from 2.0.4 to 3.0.1 #196

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
branch: [devel]
name: "Nim ${{ matrix.branch }}"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: union
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
path: union
- name: Setup Nim
uses: alaviss/setup-nim@0.1.1
with:
path: nim
version: ${{ matrix.branch }}
- name: Install dependencies
run: nimble install -y --depsOnly
- name: Run tests
run: nimble test -y
- name: Build docs
shell: bash
run: |
branch=${{ github.ref }}
branch=${branch##*/}
for i in *.nim; do
nimble doc --project --outdir:htmldocs \
'--git.url:https://github.com/${{ github.repository }}' \
'--git.commit:${{ github.sha }}' \
"--git.devel:$branch" \
"$i"
done
# Ignore failures for older Nim
cp htmldocs/{the,}index.html || true
- uses: actions/upload-pages-artifact@v2.0.0
with:
path: union/htmldocs
deploy:
if: github.ref_name == 'main'
name: Deploy docs to Github Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v3.0.1