-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (63 loc) · 1.98 KB
/
Copy pathrelease.yml
File metadata and controls
73 lines (63 loc) · 1.98 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 🚀 Release
on:
pull_request:
types:
- closed
workflow_dispatch:
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- run: echo The PR was merged
release:
runs-on: ubuntu-latest
steps:
- name: Create Release 🟢
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: manifest
default-branch: master
- name: Checkout 📁
uses: actions/checkout@v3
- name: Setup PHP 8.1 🛠️
if: ${{ steps.release.outputs.releases_created }}
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: pcov
- name: Install PHP dependencies 🔄
if: ${{ steps.release.outputs.releases_created }}
uses: ramsey/composer-install@v1
with:
composer-options: '-oa --no-dev'
- name: Install and Setup Node 16.x
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install NPM dependencies
if: ${{ steps.release.outputs.releases_created }}
run: |
npm install
- name: Setup Node 16.x
if: ${{ steps.release.outputs.releases_created }}
run: |
npm run asset:build
- name: Build The Artifact 📦
if: ${{ steps.release.outputs.releases_created }}
run: |
php bin/zipit
- name: Build Directory 📦 📁
if: ${{ steps.release.outputs.releases_created }}
run: |
php bin/zipit copy
- name: 🌐 Upload zip to release
if: ${{ steps.release.outputs.releases_created }}
uses: AButler/upload-release-assets@v2.0
with:
files: './build/brisko.zip;CHANGELOG.md;LICENSE'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ steps.release.outputs.tag_name }}