deploy permissions #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # Trigger the action on push to the 'main' branch | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: demo | |
url: ${{ steps.deploy_to_pages.outputs.github_pages_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Vite Github Pages Deployer | |
uses: skywarth/[email protected] | |
id: deploy_to_pages |