Skip to content

release

release #27

Workflow file for this run

name: Create release
on:
repository_dispatch:
types: [ release ]
jobs:
update-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: node update-composer-json.js ${{ github.event.client_payload.tag_name }}
- run: composer update --no-interaction
- uses: dsaltares/[email protected]
with:
repo: "dbrekelmans/browser-driver-installer"
version: "tags/${{ github.event.client_payload.tag_name }}"
file: "bdi.phar"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: dsaltares/[email protected]
with:
repo: "dbrekelmans/browser-driver-installer"
version: "tags/${{ github.event.client_payload.tag_name }}"
file: "bdi.phar.asc"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
cp bdi.phar bdi
curl -L https://raw.githubusercontent.com/dbrekelmans/browser-driver-installer/${{ github.event.client_payload.tag_name }}/LICENSE > LICENSE
- name: Commit assets
id: commit
uses: EndBug/add-and-commit@v5
with:
message: "Update PHAR distribution to ${{ github.event.client_payload.tag_name }}"
tag: ${{ github.event.client_payload.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/create-release@v1
with:
tag_name: ${{ github.event.client_payload.tag_name }}
release_name: ${{ github.event.client_payload.release_name }}
prerelease: ${{ github.event.client_payload.prerelease }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}