-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.75 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 }}