Skip to content

fix permission for token #5

fix permission for token

fix permission for token #5

Workflow file for this run

on:
push:
branches:
- master
permissions:
id-token: write
pages: write
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: stable
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build docs
run: nimble gendoc -y
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}