Skip to content

Refactor deployment workflow in changelog-website.yml #3

Refactor deployment workflow in changelog-website.yml

Refactor deployment workflow in changelog-website.yml #3

name: Deploy to GitHub Pages
on:
push:
branches: ["Production"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
install:
runs-on: ubuntu-latest
name: 📦 Install
outputs:
sha: ${{ steps.checkout.outputs.commit_sha }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
deploy:

Check failure on line 28 in .github/workflows/changelog-website.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/changelog-website.yml (Line: 28, Col: 1): Unexpected value 'deploy'
needs: install
name: 🚀 Deploy
environment:
name: Workway Updates
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './src'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4