Skip to content

Merge branch 'release/0.11.22' into 0.11 #56

Merge branch 'release/0.11.22' into 0.11

Merge branch 'release/0.11.22' into 0.11 #56

Workflow file for this run

name: Create release
on:
push:
tags: 'v*'
jobs:
draft_release:
name: 'Create draft release'
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.tag_name.outputs.tag }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Get tag name
id: tag_name
uses: little-core-labs/[email protected]
- name: Create draft release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: PsySH ${{ steps.tag_name.outputs.tag }}
body: |
New:
- ...
Improved:
- ...
Removed:
- ...
draft: true
prerelease: false
upload_assets:
name: 'Upload release assets'
needs: draft_release
runs-on: ubuntu-latest
strategy:
matrix:
package: ['', '-php70']
steps:
- name: Check out code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: 7.4
tools: composer:v2
coverage: none
- name: Install dependencies
uses: nick-fields/[email protected]
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --no-interaction --no-progress
- name: Build release asset
run: make dist/psysh-${{ needs.draft_release.outputs.tag_name }}${{ matrix.package }}.tar.gz
- name: Upload release asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.draft_release.outputs.upload_url }}
asset_path: ./dist/psysh-${{ needs.draft_release.outputs.tag_name }}${{ matrix.package }}.tar.gz
asset_name: psysh-${{ needs.draft_release.outputs.tag_name }}${{ matrix.package }}.tar.gz
asset_content_type: application/gzip