name: Release on: push: tags: - "v*" jobs: release: runs-on: ubuntu-latest permissions: contents: write packages: write steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: driver: docker-container cache-to: type=gha cache-from: type=gha - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Log in to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Go uses: actions/setup-go@v5 with: go-version: "1.24.3" cache: true - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: '18.12' - name: Install pnpm run: npm install -g pnpm - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: version: latest args: release --parallelism 1 --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCKER_ORG: libredesk GITHUB_ORG: ${{ github.repository_owner }}