2 Commits

Author SHA1 Message Date
David Spáčil 1cc1850fb5 Create release_plugin.yml 2026-02-11 14:48:14 +01:00
David Spáčil 69b6edce96 Fixed structure 2026-02-11 14:45:27 +01:00
36 changed files with 30 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Release QGIS Plugin
on:
release:
types: [published]
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
# 1. Stáhne kód z repozitáře
- name: Checkout code
uses: actions/checkout@v2
# 2. Vytvoří ZIP (předpokládá, že kód je ve složce 'amcr_viewer')
- name: Zip Plugin
run: |
# Zabalíme složku amcr_viewer do souboru amcr_viewer.zip
# -r = rekurzivně, -x = ignorovat skryté git soubory
zip -r amcr_viewer.zip amcr_viewer -x "*.git*"
# 3. Nahraje ZIP k Releasu
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: amcr_viewer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
View File

Before

Width:  |  Height:  |  Size: 993 B

After

Width:  |  Height:  |  Size: 993 B

View File

Before

Width:  |  Height:  |  Size: 967 B

After

Width:  |  Height:  |  Size: 967 B

View File