Skip to content

publish updates

publish updates #54

Workflow file for this run

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_FOR_PACKAGES_PIVVENIT_NET_PAT}}"" \
-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"}'