File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments