-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.17 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
49
50
name: Release
on:
push:
paths:
- "version.json"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-20.04
permissions: write-all
steps:
- name: clone repo
uses: actions/checkout@v4
- name: php version
run: |
php -v
- name: get version
run: |
VERSION=$(cat version.json | jq -r ".version")
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: zip repo
run: zip -r -9 file-manager.zip . -x ".git/*" ".github/*"
- name: zip full
run: |
wget https://getcomposer.org/download/latest-stable/composer.phar
php composer.phar install
zip -r -9 file-manager-full.zip . -x ".git/*" ".github/*" "file-manager.zip"
- name: bump tag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_TAG: ${{ env.VERSION }}
- name: bump release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.VERSION }}
generate_release_notes: true
files: |
file-manager.zip
file-manager-full.zip