mirror of
https://github.com/ARUP-CAS/aiscr-qgis-amcr-viewer.git
synced 2026-10-09 12:27:36 +02:00
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 3.0.0 to 3.0.3. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/b4309332981a82ec1c5618f44dd2e27cc8bfbfda...efb35369e0ad2afab669f228072c1b0d510eae64) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 3.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
name: Release QGIS Plugin
|
|
|
|
# Spouští se na push tagu, ne na publikaci releasu. Organizace má zapnuté
|
|
# immutable releases: k už publikovanému releasu nelze nic přiložit, příloha
|
|
# tedy musí vzniknout dřív, než se release zveřejní. Workflow proto založí
|
|
# koncept releasu i se ZIPem; text se dopisuje a publikuje ručně.
|
|
#
|
|
# Pozor: workflow se čte z commitu, na který tag ukazuje. Tag musí být
|
|
# založen až na commitu, který tento soubor obsahuje.
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-and-release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# 1. Stáhne kód z tagu, který běh spustil
|
|
- name: Checkout code
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
# 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. Založí koncept releasu i s přílohou
|
|
# Tagy s pomlčkou (v2.0.0-alpha.1) se označí jako pre-release.
|
|
- name: Create draft release with asset
|
|
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
|
with:
|
|
files: amcr_viewer.zip
|
|
draft: true
|
|
name: AMCR Viewer ${{ github.ref_name }}
|
|
prerelease: ${{ contains(github.ref_name, '-') }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|