Skip to content

Commit a27ff12

Browse files
committed
feat: Add GitHub Actions workflow for releasing plugin assets in a Github Release
1 parent afe4044 commit a27ff12

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Plugins Release (Manual)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version number (e.g v1.0.0)"
8+
required: true
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Create tar file of the plugins folder
22+
run: |
23+
tar -czvf plugins-${{ github.event.inputs.version }}.tar.gz -C plugins .
24+
25+
- name: Create GitHub release and upload asset
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
gh release create plugins-${{ github.event.inputs.version }} \
30+
plugins-${{ github.event.inputs.version }}.tar.gz \
31+
--title "Release plugins-${{ github.event.inputs.version }}" \
32+
--notes "Release of plugins version ${{ github.event.inputs.version }}"

0 commit comments

Comments
 (0)