This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (45 loc) · 1.99 KB
/
create-zip.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: Create zip
on:
push:
tags:
- '*'
jobs:
CreateZip:
runs-on: ubuntu-latest
container: ghcr.io/friendsofshopware/platform-plugin-dev:v6.4.1
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Checkout
uses: actions/checkout@v2.3.1
with:
path: RuneLaenenAdvancedBanners
- name: Build & create zip
run: |
cp -r "./RuneLaenenAdvancedBanners" "/plugins/RuneLaenenAdvancedBanners"
#composer install -d "/plugins/RuneLaenenAdvancedBanners" --no-ansi --no-dev --no-interaction --no-plugins --no-progress --no-scripts --no-suggest --optimize-autoloader --ignore-platform-reqs
start-mysql
pack-plugin "RuneLaenenAdvancedBanners"
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/')
id: upload_release_asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: RuneLaenenAdvancedBanners.zip
asset_name: RuneLaenenAdvancedBanners.zip
asset_content_type: application/zip