secret #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
name: Build | |
jobs: | |
master-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Fetch the entire git repository | |
run: | | |
git fetch --unshallow | |
- name: Setup PHP with no coverage driver | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Validate composer.json and composer.lock | |
run: composer validate --no-check-all --strict | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Check for syntax-errors | |
run: composer run syntax-check | |
- name: Run lint | |
run: composer run lint | |
- name: Run static analysis | |
run: composer run analyse | |
- name: Publish repository | |
run: | | |
curl -XPOST \ | |
-H "Authorization: Bearer ${{secrets.QUEUE_BUILD}}" \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
-H "Content-Type: application/json" \ | |
https://api.github.com/repos/pivvenit/packages.pivvenit.net/dispatches --data '{"event_type": "workflow_dispatch"}' | |