Skip to content

Version bump

Version bump #4

Workflow file for this run

name: Collector packaging
on:
push:
tags:
- '*'
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- name: Checkout collector-base
uses: actions/checkout@v4
with:
repository: Combodo/itop-data-collector-base
ref: 1.3.1
sparse-checkout: |
conf
core
data
exec.php
toolkit
sparse-checkout-cone-mode: false
path: ${{ github.repository }}
- name: Checkout current collector
uses: actions/checkout@v4
with:
path: ${{ github.repository }}/collectors
- name: Create package
uses: thedoctor0/zip-release@0.7.6
with:
filename: ../${{ github.repository }}-${{ github.ref_name }}.zip
path: '*'
directory: ${{ github.repository_owner }}
exclusions: '*.git*'
- name: Create draft release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: ${{ github.repository }}-${{ github.ref_name }}.zip
artifactErrorsFailBuild: true
draft: true
generateReleaseNotes: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitPrereleaseDuringUpdate: true
updateOnlyUnreleased: true
token: ${{ secrets.ACCESS_TOKEN }}