Add GenericObject plugin files and assets
- Introduced default icon images in PNG and SVG formats. - Added example icons for car and cube in SVG format. - Created setup file for the GenericObject plugin with versioning and directory definitions. - Included a header file with licensing information for the plugin. - Added a remove.txt file with instructions for safe deletion.
This commit is contained in:
40
plugins/genericobject/.github/workflows/release.yml
vendored
Normal file
40
plugins/genericobject/.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
name: "Plugin release"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
name: "Create release"
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: "Extract tag name"
|
||||
run: |
|
||||
echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||
- name: "Checkout"
|
||||
uses: "actions/checkout@v2"
|
||||
- name: "Build package"
|
||||
id: "build-package"
|
||||
uses: "glpi-project/tools/github-actions/build-package@0.1.15"
|
||||
with:
|
||||
plugin-version: ${{ env.tag_name }}
|
||||
- name: "Create release"
|
||||
id: "create-release"
|
||||
uses: "actions/create-release@v1"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ env.tag_name }}
|
||||
release_name: ${{ env.tag_name }}
|
||||
draft: true
|
||||
- name: "Attach package to release"
|
||||
uses: "actions/upload-release-asset@v1"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||
asset_path: ${{ steps.build-package.outputs.package-path }}
|
||||
asset_name: ${{ steps.build-package.outputs.package-basename }}
|
||||
asset_content_type: " application/x-bzip2"
|
||||
Reference in New Issue
Block a user