-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.03 KB
/
release-plugin.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
---
name: 'Release Starterpack-i18n plugin'
on:
push:
tags:
- "v*.*.*"
env:
PLUGIN_NAME: starterpack-i18n
jobs:
release:
name: "Release"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/build
- name: Generate plugin folder
uses: up9cloud/action-rsync@master
env:
MODE: local
SOURCE: .
TARGET: ${{ env.PLUGIN_NAME }}
ARGS: -r --exclude=.editorconfig --exclude=.git --exclude=.github --exclude=.gitignore --exclude=composer.json --exclude=composer.lock --exclude=README.md
- name: Generate zip file
uses: montudor/action-zip@v1
with:
args: zip -qq -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
- name: Create release
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: false
files: |
${{ env.PLUGIN_NAME }}.zip