From 6393166de64ae69eb8209c9444ea76b7bd546938 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 3 Sep 2024 11:58:21 +0200 Subject: [PATCH] Add missing GHA changes --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/publish.yml | 16 ++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 473ba7da..06983d47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,8 +41,17 @@ jobs: - name: check-java run: java --version + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install Poetry + uses: snok/install-poetry@v1 + - name: build-java run: ./gradlew ${{ env.GRADLE_SWITCHES }} build + - name: build-python run: | for directory in rewrite/rewrite-*/; do diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1d3c45f2..9aa7c89b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,6 +37,14 @@ jobs: - name: set-up-gradle uses: gradle/actions/setup-gradle@v4 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install Poetry + uses: snok/install-poetry@v1 + - name: publish-candidate if: contains(github.ref, '-rc.') run: | @@ -70,14 +78,6 @@ jobs: echo "Extracted version: $version" echo "::set-output name=VERSION::$version" - - name: Install Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' - - - name: Install Poetry - uses: snok/install-poetry@v1 - - name: Set project version with Poetry working-directory: rewrite run: poetry version ${{ steps.extract_version.outputs.VERSION }}