github.com/goreleaser/goreleaser@v1.25.1/.github/workflows/nightly-oss.yml (about)

     1  name: nightly-oss
     2  
     3  on:
     4    workflow_dispatch:
     5    schedule:
     6      - cron: 0 0 * * 4
     7  
     8  permissions:
     9    contents: write
    10    id-token: write
    11    packages: write
    12  
    13  jobs:
    14    goreleaser:
    15      runs-on: ubuntu-latest
    16      env:
    17        DOCKER_CLI_EXPERIMENTAL: "enabled"
    18      steps:
    19        - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3
    20          with:
    21            fetch-depth: 0
    22        - uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
    23          with:
    24            version: 3.x
    25            repo-token: ${{ secrets.GITHUB_TOKEN }}
    26        - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
    27        - uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3
    28        - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
    29          with:
    30            go-version: stable
    31        - uses: sigstore/cosign-installer@v3.4.0
    32        - uses: anchore/sbom-action/download-syft@v0.15.10
    33        - uses: crazy-max/ghaction-upx@v3
    34          with:
    35            install-only: true
    36        - uses: cachix/install-nix-action@v26
    37          with:
    38            github_access_token: ${{ secrets.GITHUB_TOKEN }}
    39        - name: dockerhub-login
    40          uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
    41          with:
    42            username: ${{ secrets.DOCKER_USERNAME }}
    43            password: ${{ secrets.DOCKER_PASSWORD }}
    44        - name: ghcr-login
    45          uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
    46          with:
    47            registry: ghcr.io
    48            username: ${{ github.repository_owner }}
    49            password: ${{ secrets.GITHUB_TOKEN }}
    50        - uses: goreleaser/goreleaser-action@v5
    51          with:
    52            distribution: goreleaser-pro
    53            version: nightly
    54            args: release --clean --nightly -f .goreleaser-nightly.yaml --timeout 60m
    55          env:
    56            GITHUB_TOKEN: ${{ secrets.GH_PAT }}
    57            GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}