From 3143b7aa52629786816bbb5a10fcc4119f471284 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 2 Jan 2025 09:10:50 +0100 Subject: [PATCH 1/2] ci: Setup go after downloading workdir and checking out tag --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ab14f17..e866438d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,10 +97,6 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.19 - uses: actions/download-artifact@v4 with: name: workdir-${{ matrix.pythonStandaloneVersion }} ${{ matrix.pythonVersion }} @@ -112,6 +108,10 @@ jobs: run: | git reset --hard git checkout v0.0.0-${{ matrix.pythonVersion }}-${{ matrix.pythonStandaloneVersion }}-$(cat build-num) + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.19 - name: run tests shell: bash run: | From 6fd8fdd674f2fb758d0ab31ceb36929f66d3c2a9 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 2 Jan 2025 09:11:28 +0100 Subject: [PATCH 2/2] ci: Rename .git back in release job --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e866438d..14e164ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,6 +135,9 @@ jobs: - uses: actions/download-artifact@v4 with: name: workdir-${{ matrix.pythonStandaloneVersion }} ${{ matrix.pythonVersion }} + - name: rename .git back + run: | + mv git-dir .git - name: update remote url run: | git remote set-url origin https://token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY