diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cd33149..f35a692 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -8,17 +8,20 @@ on: jobs: release: runs-on: alpine-latest + defaults: + run: + shell: sh + steps: - name: Install dependencies - run: apk add --no-cache zip curl + run: | + apk add --no-cache git zip curl jq + git config --global http.sslVerify false + - name: Checkout run: | - curl -s -L \ - -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ - "${{ vars.GITEA_URL }}/api/v1/repos/${{ github.repository }}/archive/${{ github.sha }}.tar.gz" \ - -o repo.tar.gz - tar -xzf repo.tar.gz --strip-components=1 - rm repo.tar.gz + git clone --depth 1 --branch ${{ github.ref_name }} https://x-access-token:${{ gitea.token }}@entwicklung.flurneuordnung-sachsen.de/${{ github.repository }}.git . + - name: Determine version and channel id: info run: |