Skip to content

chore(deps): bump actions/configure-pages from 4 to 5 (#438) #70

chore(deps): bump actions/configure-pages from 4 to 5 (#438)

chore(deps): bump actions/configure-pages from 4 to 5 (#438) #70

Workflow file for this run

name: Build and deploy translation status to Github Pages
on:
push:
branches:
- develop
paths:
- Language/**
- tests/Language/AbstractTranslationTestCase.php
- .github/workflows/generate-page.yml
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
if: github.repository == 'codeigniter4/translations'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: intl, mbstring
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get composer cache directory
id: composer-cache
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.COMPOSER_CACHE_FILES_DIR }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer update --ansi
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build
run: ./bin/generate-page
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./page/build
# Deployment job
deploy:
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