diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08fac2dc..fb985f9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,42 +9,7 @@ env: BACKEND_IMAGE_NAME: ${{ github.repository }}-backend jobs: - update-version: - runs-on: ubuntu-latest - permissions: - contents: write - outputs: - version: ${{ steps.get-version.outputs.version }} - steps: - - uses: actions/checkout@v4 - with: - ref: main - fetch-depth: 0 - - - name: Get version from tag - id: get-version - run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT - - - name: Update pyproject.toml version - run: | - VERSION=${{ steps.get-version.outputs.version }} - sed -i "s/version = \".*\"/version = \"$VERSION\"/" backend/pyproject.toml - - - name: Commit and push version update - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" - git add backend/pyproject.toml - git commit -m "chore: update version to ${{ steps.get-version.outputs.version }}" - git push origin main - - - name: Update release tag - run: | - git tag -f ${{ github.event.release.tag_name }} - git push --force origin ${{ github.event.release.tag_name }} - build-and-push-docker: - needs: update-version runs-on: ubuntu-latest permissions: contents: read @@ -85,7 +50,7 @@ jobs: labels: ${{ steps.meta-backend.outputs.labels }} publish-to-pypi: - needs: [update-version, build-and-push-docker] + needs: [build-and-push-docker] runs-on: ubuntu-latest permissions: id-token: write