Skip to content

refactor: extract generalized "boardgame-listing" template #7

refactor: extract generalized "boardgame-listing" template

refactor: extract generalized "boardgame-listing" template #7

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
BGG_USERNAME: ${{ vars.BGG_USERNAME }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
- name: "Validate Composer"
run: "composer validate"
- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
- name: "Test"
run: "composer test"
- name: "Build"
run: "make"
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "build"
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4