Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Jan 6, 2025
1 parent 832e594 commit a485d1a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ on:
jobs:

release:
runs-on: ubuntu-22.04
env:
GITHUB_REF: ${{ github.ref }}
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
steps:
- name: Checkout
Expand All @@ -33,16 +31,15 @@ jobs:
run: pip3 install qgis-plugin-ci
- name: Release
run: |
VERSION=$(echo "${GITHUB_REF_NAME}" | cut -d+ -f1)
qgis-plugin-ci -v release ${VERSION} \
qgis-plugin-ci -v release ${GITHUB_REF/refs\/tags\//} \
--release-tag ${GITHUB_REF_NAME} \
--transifex-token ${{ secrets.TX_TOKEN }} \
--github-token ${{ secrets.GITHUB_TOKEN }} \
--osgeo-username ${{ secrets.OSGEO_USERNAME }} --osgeo-password ${{ secrets.OSGEO_PASSWORD }} \
--allow-uncommitted-changes
translations:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
steps:
- name: Checkout
Expand All @@ -56,7 +53,7 @@ jobs:
sudo apt-get install qtbase5-dev qttools5-dev-tools
- name: Install qgis-plugin-ci
run: pip3 install qgis-plugin-ci==2.7.*
run: pip3 install qgis-plugin-ci

- name: 🌍 Push translations
run: qgis-plugin-ci push-translation ${{ secrets.TX_TOKEN }}

0 comments on commit a485d1a

Please sign in to comment.