Compare commits

...

6 Commits
v4 ... v10

Author SHA1 Message Date
Michael Otto
6715ce896c Add release workflow 2026-03-03 08:01:42 +01:00
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

View File

@@ -20,19 +20,40 @@ jobs:
apk add --no-cache git zip curl jq rsync bash apk add --no-cache git zip curl jq rsync bash
git config --global http.sslVerify false git config --global http.sslVerify false
- name: Remote URL fixen - name: Code holen
run: | run: |
CURRENT_URL=$(git config --get remote.origin.url) # Tag aus GitHub Actions Kontext extrahieren
echo "Original URL: $CURRENT_URL" TAG="${GITHUB_REF#refs/tags/}"
echo "Tag erkannt: $TAG"
# Hostnamen durch RELEASE_URL ersetzen # Repo-URL dynamisch aus vars und github.repository bauen
NEW_URL=$(echo "$CURRENT_URL" | sed "s|://[^/]*|://${{ secrets.RELEASE_TOKEN }}:@${{ vars.RELEASE_URL }}|") REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
echo "Neue URL: $NEW_URL" echo "Cloning from: $REPO_URL"
git remote set-url origin "$NEW_URL" # Repository klonen
git clone "$REPO_URL" repo
cd repo
- name: Repository auschecken git checkout "$TAG"
uses: actions/checkout@v3 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 - name: Debug Info
run: | run: |