Skip to content

Update GitHub action versions #24

Update GitHub action versions

Update GitHub action versions #24

name: Build and Deploy
concurrency: ci-${{ github.ref }}
on:
push:
branches: [main]
paths:
- "**"
- "!**.md"
workflow_dispatch:
repository_dispatch:
types: [build-and-deploy]
jobs:
dispatch-wordy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Dispatch Wordy
uses: peter-evans/repository-dispatch@v2
with:
repository: nsmaciej/wordy
event-type: build-and-deploy
# Check out https://github.com/peter-evans/repository-dispatch#token
token: ${{ secrets.WORDY_ACCESS_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Install and Build
run: |
npm ci
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "build"
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:

Check failure on line 54 in .github/workflows/build-and-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 54
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4