Update changelog #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified from https://github.com/GispoCoding/qaava-qgis-plugin/blob/master/.github/workflows/tests.yml | |
# workflow name | |
name: Package | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the wanted branches | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
package: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Copy plugin to directory for packaging | |
run: | | |
rm -rf imodqgis_packaged | |
mkdir -m 755 imodqgis_packaged | |
cp -R imodqgis imodqgis_packaged/imodqgis | |
shell: bash | |
- name: Upload imodqgis to Github artifact | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
path: imodqgis_packaged | |
name: imodqgis_${{ github.sha }} | |
- name: Upload imodqgis to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: imodqgis_packaged | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true | |
if: startsWith(github.ref, 'refs/tags/') |