From 615dc23667c01ba9df4e35bc23c57abfe5b69e09 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Wed, 17 Apr 2024 15:29:40 +0200 Subject: [PATCH] better workflow --- .github/workflows/plugin-package.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/plugin-package.yml b/.github/workflows/plugin-package.yml index 12e771d..7a643d3 100644 --- a/.github/workflows/plugin-package.yml +++ b/.github/workflows/plugin-package.yml @@ -38,13 +38,14 @@ jobs: run: pip install qgis-plugin-ci>=2.8.6 - name: 🌍 Push translations - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') }} run: qgis-plugin-ci push-translation ${{ secrets.TX_TOKEN }} - name: Install pgservice parser run: pip install -r requirements.txt -t pg_service_parser/libs - name: Package + if: ${{ ! startsWith(github.ref, 'refs/tags/') }} run: | VERSION=0.0.0 qgis-plugin-ci package ${VERSION} \ @@ -60,8 +61,8 @@ jobs: --allow-uncommitted-changes \ --asset-path pg_service_parser/libs \ --github-token ${{ secrets.GITHUB_TOKEN }} \ - --osgeo-username ${{ secrets.OSGEO_USER }} \ - --osgeo-password ${{ secrets.OSGEO_PASSWORD }} \ + --osgeo-username ${{ secrets.OSGEO_PLUGIN_USERNAME }} \ + --osgeo-password ${{ secrets.OSGEO_PLUGIN_PASSWORD }} \ --transifex-token "${{ secrets.TX_TOKEN }}" - uses: actions/upload-artifact@v4