Skip to content

fix: update workflows permissions #4

fix: update workflows permissions

fix: update workflows permissions #4

Workflow file for this run

name: Deploy Django React Native Websocket Docs to GitHub Pages
on:
push:
branches:
- main # Adjust this to the branch you want to deploy from
permissions:
pages: write # Allow the workflow to write to GitHub Pages
id-token: write # Allow the workflow to write an ID token
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./ # Deploy everything from the root directory