From 65c656870d87249c577569e10fa498bd2eb893d6 Mon Sep 17 00:00:00 2001 From: lgcorzo Date: Sun, 12 Apr 2026 13:19:26 +0200 Subject: [PATCH] fix(ci): grant write perms for Pages and fix Docker Hub login condition - Upgraded contents permission to write for gh-pages deployment. - Fixed Docker Hub login condition to trigger on pushes to main. - Optimized packages job by removing redundant build steps. --- .github/workflows/publish.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7069c5b..9fc72b4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ concurrency: jobs: pages: permissions: - contents: read + contents: write pages: write id-token: write runs-on: ubuntu-latest @@ -38,9 +38,6 @@ jobs: environment: production steps: - uses: actions/checkout@v4 - - uses: ./.github/actions/setup - - run: poetry install --with dev - - run: poetry run invoke packages - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -48,7 +45,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub - if: github.event.release.target_commitish == 'main' || github.event_name == 'workflow_dispatch' + if: github.event.release.target_commitish == 'main' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }}