Skip to content

Commit

Permalink
move to GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 7, 2020
1 parent f67af72 commit a123a62
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 51 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: push-translations

on:
push:
branches:
- master

jobs:
push-translations:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install Qt lrelease
run: sudo apt-get install qt5-default qttools5-dev-tools

- name: Install qgis-plugin-ci
run: pip3 install qgis-plugin-ci

- name: Push translations
run: qgis-plugin-ci push-translation ${{ secrets.TX_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release

on:
release:
types: published

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: checkout submodules
run: |
sed -i 's#git@github.com:#https://github.com/#' .gitmodules
git submodule update --init --recursive
sed -i 's#https://github.com/#git@github.com:#' .gitmodules
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install Qt lrelease
run: sudo apt-get install qt5-default qttools5-dev-tools

- name: Install qgis-plugin-ci
run: pip3 install qgis-plugin-ci

- name: Deploy plugin
run: >-
qgis-plugin-ci
release ${GITHUB_REF/refs\/tags\//}
--github-token ${{ secrets.GITHUB_TOKEN }}
--osgeo-username ${{ secrets.OSGEO_USER }}
--osgeo-password ${{ secrets.OSGEO_PASSWORD }}
--transifex-token ${{ secrets.TX_TOKEN }}
9 changes: 9 additions & 0 deletions .qgis-plugin-ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
plugin_path: swiss_locator
github_organization_slug: opengisch
project_slug: qgis-swiss-locator

transifex_coordinator: geoninja
translation_languages:
- fr
- it
- de
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

0 comments on commit a123a62

Please sign in to comment.