Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Nov 2, 2024
1 parent fc8c5cb commit 05a391e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/generatemo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Perl environment
# You may pin to the exact commit or the version.
# uses: shogo82148/actions-setup-perl@8d2e3d59a9516b785ed32169d48a4888eaa9b514
uses: shogo82148/actions-setup-perl@v1.20.1
uses: shogo82148/actions-setup-perl@v1
- name: msgfmt
# You may pin to the exact commit or the version.
# uses: whtsky/msgfmt-action@6b2181f051b002182d01a1e1f1aff216230c5a4d
Expand All @@ -27,11 +27,11 @@ jobs:
run: perl tools/update_mo.pl;

- name: Commit changes
uses: EndBug/add-and-commit@v5.1.0
uses: EndBug/add-and-commit@v9
with:

message: "Generate mo"
- name: Push changes

uses: actions-go/push@v1
uses: actions-go/push@master

24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*.*.*' # Push events to matching ex:20.15.10
- '*.*.*' # Push events to matching ex:20.15.10

name: Create release with tag
env:
Expand All @@ -14,29 +14,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Build project # This would actually build your project, using zip for an example artifact
id: build_
env:
GITHUB_NAME: ${{ github.event.repository.name }}
run: sudo apt-get install libxml-xpath-perl;echo $(xpath -e '/root/versions/version[num="'${GITHUB_REF/refs\/tags\//}'"]/compatibility/text()' $GITHUB_NAME.xml);echo ::set-output name=version_glpi::$(xpath -e '/root/versions/version[num="'${GITHUB_REF/refs\/tags\//}'"]/compatibility/text()' $GITHUB_NAME.xml); rm -rf $GITHUB_NAME.xml tools wiki screenshots test .git .github ISSUE_TEMPLATE.md TODO.txt $GITHUB_NAME.png;cd ..; tar jcvf glpi-$GITHUB_NAME-${GITHUB_REF/refs\/tags\//}.tar.bz2 $GITHUB_NAME;ls -al;echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//};echo ${{ steps.getxml.outputs.info }};
# run: rm -rf $GITHUB_NAME.xml tools wiki screenshots test ISSUE_TEMPLATE.md TODO.txt $GITHUB_NAME.png; tar -zcvf glpi-$GITHUB_NAME-$GITHUB_TAG.tar.gz $GITHUB_NAME
GITHUB_NAME: ${{ github.event.repository.name }}


run: php -v ;sudo apt-get install libxml-xpath-perl; sudo apt-get install composer;echo $(xpath -e '/root/versions/version[num="'${GITHUB_REF/refs\/tags\//}'"]/compatibility/text()' $GITHUB_NAME.xml);echo ::set-output name=version_glpi::$(xpath -e '/root/versions/version[num="'${GITHUB_REF/refs\/tags\//}'"]/compatibility/text()' $GITHUB_NAME.xml); [[ -f composer.json ]] && composer install --no-dev; rm -rf $GITHUB_NAME.xml tools wiki screenshots test .git .github ISSUE_TEMPLATE.md TODO.txt $GITHUB_NAME.png;cd ..; tar -jcvf glpi-$GITHUB_NAME-${GITHUB_REF/refs\/tags\//}.tar.bz2 $GITHUB_NAME;ls -al;echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//};echo ${{ steps.getxml.outputs.info }};
# run: rm -rf $GITHUB_NAME.xml tools wiki screenshots test ISSUE_TEMPLATE.md TODO.txt $GITHUB_NAME.png; tar -zcvf glpi-$GITHUB_NAME-$GITHUB_TAG.tar.bz2 $GITHUB_NAME
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: |
GLPI ${{ steps.build_.outputs.version_glpi }} : Version ${{ github.ref }} disponible / available
release_name: |
GLPI ${{ steps.build_.outputs.version_glpi }} : Version ${{ github.ref }} disponible / available
body : Version ${{ steps.build_.outputs.tag }} released for GLPI ${{ steps.build_.outputs.version_glpi }}
draft: false
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/updatepot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: install xgettext

Expand All @@ -25,10 +25,10 @@ jobs:


- name: Commit changes
uses: EndBug/add-and-commit@v5.1.0
uses: EndBug/add-and-commit@v9
with:
message: "Update POT"
- name: Push changes

uses: actions-go/push@v1
uses: actions-go/push@master

6 changes: 6 additions & 0 deletions releases.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ The plugin allows:
<issues>https://github.com/InfotelGLPI/releases/issues</issues>
<readme>https://raw.githubusercontent.com/InfotelGLPI/releases/master/README.md</readme>
<authors>
<author>Xavier Caillaud</author>
<author>Alban Lesellier</author>
<author>Infotel</author>
</authors>
<versions>
<version>
<num>2.0.4</num>
<compatibility>~10.0</compatibility>
<download_url>https://github.com/InfotelGLPI/releases/releases/download/2.0.4/glpi-releases-2.0.4.tar.bz2</download_url>
</version>
<version>
<num>2.0.3</num>
<compatibility>~10.0</compatibility>
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--------------------------------------------------------------------------
*/

define('PLUGIN_RELEASES_VERSION', '2.0.3');
define('PLUGIN_RELEASES_VERSION', '2.0.4');

if (!defined("PLUGIN_RELEASES_DIR")) {
define("PLUGIN_RELEASES_DIR", Plugin::getPhpDir("releases"));
Expand Down

0 comments on commit 05a391e

Please sign in to comment.