Skip to content

Commit

Permalink
fix(docs): adds GH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Sep 29, 2024
1 parent 9d58740 commit c9535e9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and Deploy Writerside Documentation

on:
push:
branches: ['main']
workflow_dispatch:
branches: ['main'] # Trigger the workflow when changes are pushed to the 'main' branch
workflow_dispatch: # Allow manual triggering of the workflow

permissions:
id-token: write
Expand All @@ -22,6 +22,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0

- name: Build Writerside docs using Docker
Expand All @@ -30,8 +31,7 @@ jobs:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}
# Update to reflect the path of your Writerside directory inside the app
path: Writerside
path: Writerside # Specify the directory for Writerside docs

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -44,7 +44,6 @@ jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest

Expand All @@ -68,3 +67,6 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]

- name: Print GitHub Pages URL
run: echo "Your site is deployed at ${{ steps.deployment.outputs.page_url }}"

0 comments on commit c9535e9

Please sign in to comment.