Skip to content

Merge pull request #57 from izumiya-keisuke/unite #17

Merge pull request #57 from izumiya-keisuke/unite

Merge pull request #57 from izumiya-keisuke/unite #17

Workflow file for this run

name: Deploy Web Page
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
on:
push:
branches:
- main
workflow_dispatch:
jobs:
web-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-
if: runner.os != 'Windows'
- uses: jiro4989/setup-nim-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble documentation
- run: |-
nimble web
mv www src/htmldocs/playground
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v1
with:
path: ./src/htmldocs
web-deploy:
needs: web-build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v2