Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Gives workflow write permission #9

Gives workflow write permission

Gives workflow write permission #9

Workflow file for this run

name: Build Jekyll site
permissions: write-all
on:
push:
branches:
- "mxskylar_dev_deploy"
permissions:

Check failure on line 7 in .github/workflows/dev-deploy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/dev-deploy.yaml

Invalid workflow file

You have an error in your yaml syntax on line 7
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
uses: actions/jekyll-build-pages@v1
with:
destination: "./_dev/${{ github.ref_name }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./_dev/${{ github.ref_name }}"
- name: Print variable
shell: bash
run: "PROJECT=\"$(basename $(pwd))\"; cd ..; ls -la $PROJECT"
id: test
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}