Compare commits

...

8 Commits
v1 ... v9

Author SHA1 Message Date
Michael Otto
0ad9d3e1e5 Add release workflow 2026-03-03 07:57:21 +01:00
Michael Otto
46672dbf2b Add release workflow 2026-03-03 07:46:59 +01:00
Michael Otto
739af302d3 Add release workflow 2026-03-03 07:43:56 +01:00
Michael Otto
c11afa9383 Add release workflow 2026-03-03 07:39:17 +01:00
Michael Otto
78035e08b9 Add release workflow 2026-03-03 07:38:19 +01:00
Michael Otto
a2d8a1f1cf Add release workflow 2026-03-03 07:36:18 +01:00
Michael Otto
eb1c0fa6b9 Add release workflow 2026-03-03 07:29:17 +01:00
Michael Otto
cb71f30c29 Add release workflow 2026-03-03 07:27:55 +01:00

View File

@@ -15,10 +15,55 @@ jobs:
steps:
- name: Notwendige Abhängigkeiten installieren
shell: sh
run: |
apk add --no-cache git zip curl jq rsync bash
git config --global http.sslVerify false
- name: Code holen
run: |
# Tag aus GitHub Actions Kontext extrahieren
TAG="${GITHUB_REF#refs/tags/}"
echo "Tag erkannt: $TAG"
# Repo-URL dynamisch aus vars und github.repository bauen
REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
echo "Cloning from: $REPO_URL"
# Repository klonen
git clone "$REPO_URL" repo
cd repo
# Branch finden, der den Tag enthält
BRANCH=$(git branch -r --contains "$TAG" | head -n 1 | sed 's/origin\///')
if [ -z "$BRANCH" ]; then
echo "Kein Branch enthält diesen Tag checkout des Tags direkt"
git checkout "$TAG"
else
echo "Branch gefunden: $BRANCH checkout"
git checkout "$BRANCH"
fi
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
# - name: Repository auschecken
# run: |
# git clone https://$RELEASE_TOKEN:x-oauth-basic@{{ vars.RELEASE_URL }}/${{ github.repository }}.git repo
# cd repo
# env:
# GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
# - name: Repository auschecken
# uses: actions/checkout@v3
# with:
# repository: AG_QGIS/Plugin_Test_Action.git
# fetch-depth: 0
# token: ${{ secrets.RELEASE_TOKEN }}
# git_url: https://entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Plugin_Test_Action.git
- name: Debug Info
run: |
echo "Tag: $GITEA_REF_NAME"