-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 986 Bytes
/
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
name: Build Release
on:
push:
tags:
- '*'
jobs:
bundle_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout Plugin
uses: actions/checkout@v3
with:
repository: rechecked/rcagent-plugins
path: './plugins'
- name: Set Version and Plugin
run: |
sed -i 's/VERSION_ID/'$(echo '${{ github.ref_name }}' | grep "[[:digit:]].*" -o)'/' rcagent/rcagent.inc.php
cp plugins/check_rcagent.py rcagent/plugins/check_rcagent.py
chmod +x rcagent/plugins/check_rcagent.py
- name: Archive Build
uses: actions/upload-artifact@v3
with:
name: rcagent
path: rcagent
- name: Zip for Release
run: zip -r rcagent.zip rcagent
- name: Release
uses: softprops/action-gh-release@v1
with:
files: rcagent.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}