Skip to content

Set deploy step permissions #3

Set deploy step permissions

Set deploy step permissions #3

Workflow file for this run

name: Build and Deploy
on: [push]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout badge firmware
uses: actions/checkout@v5
with:
repository: emfcamp/badge-2024-software
path: badge-2024-software
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: .
deploy:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4