Skip to content

Commit

Permalink
Add automatic packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Jun 13, 2024
1 parent 94a964b commit ddd2544
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Module packaging
on:
push:
tags:
- '*'
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- name: Checkout module
uses: actions/checkout@v4
- name: Create package
uses: thedoctor0/[email protected]
with:
filename: ${{ github.workspace }}-${{ github.ref_name }}.zip
path: '*'
directory: '..'
exclusions: '*.git*'
- name: Create draft release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: ${{ github.workspace }}-${{ github.ref_name }}.zip
artifactErrorsFailBuild: true
draft: true
generateReleaseNotes: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitPrereleaseDuringUpdate: true
updateOnlyUnreleased: true
token: ${{ secrets.ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion datamodel.sv-snmp-discovery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
<dashlet id="teemip-disc-300-snmp" xsi:type="DashletHeaderDynamic" _delta="define">
<rank>4</rank>
<title>Menu:IPDiscovery:IPv4SNMP</title>
<icon>sv-snmp-discovery-main/images/icons8-switch-48-search.png</icon>
<icon>sv-snmp-discovery/images/icons8-switch-48-search.png</icon>
<subtitle>Menu:IPDiscovery:IPv4SNMP+</subtitle>
<query>SELECT IPv4Address AS A JOIN NetworkDevice AS D ON D.managementip_id = A.id WHERE D.responds_to_snmp = 'yes'</query>
<group_by>status</group_by>
Expand Down

0 comments on commit ddd2544

Please sign in to comment.