mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
1325d43c32
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/cache/releases">actions/cache's releases</a>.</em></p> <blockquote> <h2>v4.0.1</h2> <h2>What's Changed</h2> <ul> <li>Update README.md by <a href="https://github.com/yacaovsnc"><code>@yacaovsnc</code></a> in <a href="https://redirect.github.com/actions/cache/pull/1304">actions/cache#1304</a></li> <li>Update examples by <a href="https://github.com/yacaovsnc"><code>@yacaovsnc</code></a> in <a href="https://redirect.github.com/actions/cache/pull/1305">actions/cache#1305</a></li> <li>Update actions/cache publish flow by <a href="https://github.com/bethanyj28"><code>@bethanyj28</code></a> in <a href="https://redirect.github.com/actions/cache/pull/1340">actions/cache#1340</a></li> <li>Update <code>@actions/cache</code> by <a href="https://github.com/bethanyj28"><code>@bethanyj28</code></a> in <a href="https://redirect.github.com/actions/cache/pull/1341">actions/cache#1341</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/yacaovsnc"><code>@yacaovsnc</code></a> made their first contribution in <a href="https://redirect.github.com/actions/cache/pull/1304">actions/cache#1304</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/cache/compare/v4...v4.0.1">https://github.com/actions/cache/compare/v4...v4.0.1</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/cache/blob/main/RELEASES.md">actions/cache's changelog</a>.</em></p> <blockquote> <h1>Releases</h1> <h3>4.0.1</h3> <ul> <li>Updated <code>isGhes</code> check</li> </ul> <h3>4.0.0</h3> <ul> <li>Updated minimum runner version support from node 12 -> node 20</li> </ul> <h3>3.3.3</h3> <ul> <li>Updates <code>@actions/cache</code> to v3.2.3 to fix accidental mutated path arguments to <code>getCacheVersion</code> <a href="https://redirect.github.com/actions/toolkit/pull/1378">actions/toolkit#1378</a></li> <li>Additional audit fixes of npm package(s)</li> </ul> <h3>3.3.2</h3> <ul> <li>Fixes bug with Azure SDK causing blob downloads to get stuck.</li> </ul> <h3>3.3.1</h3> <ul> <li>Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck.</li> </ul> <h3>3.3.0</h3> <ul> <li>Added option to lookup cache without downloading it.</li> </ul> <h3>3.2.6</h3> <ul> <li>Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners.</li> </ul> <h3>3.2.5</h3> <ul> <li>Added fix to prevent from setting MYSYS environment variable globally.</li> </ul> <h3>3.2.4</h3> <ul> <li>Added option to fail job on cache miss.</li> </ul> <h3>3.2.3</h3> <ul> <li>Support cross os caching on Windows as an opt-in feature.</li> <li>Fix issue with symlink restoration on Windows for cross-os caches.</li> </ul> <h3>3.2.2</h3> <ul> <li>Reverted the changes made in 3.2.1 to use gnu tar and zstd by default on windows.</li> </ul> <h3>3.2.1</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="ab5e6d0c87
"><code>ab5e6d0</code></a> Merge pull request <a href="https://redirect.github.com/actions/cache/issues/1341">#1341</a> from bethanyj28/main</li> <li><a href="89c7d86c71
"><code>89c7d86</code></a> licensed cache</li> <li><a href="d2c84da363
"><code>d2c84da</code></a> update <code>@actions/cache</code></li> <li><a href="37e7d4eb16
"><code>37e7d4e</code></a> Merge pull request <a href="https://redirect.github.com/actions/cache/issues/1340">#1340</a> from actions/bethanyj28/update-publish-flow</li> <li><a href="a18323f504
"><code>a18323f</code></a> add release action</li> <li><a href="a2ed59d39b
"><code>a2ed59d</code></a> Merge pull request <a href="https://redirect.github.com/actions/cache/issues/1305">#1305</a> from actions/yacaovsnc/update_examples</li> <li><a href="dc88ab52d7
"><code>dc88ab5</code></a> Update examples</li> <li><a href="1d78355196
"><code>1d78355</code></a> Merge pull request <a href="https://redirect.github.com/actions/cache/issues/1304">#1304</a> from actions/yacaovsnc/update_readme</li> <li><a href="c36458f13b
"><code>c36458f</code></a> Update README.md</li> <li>See full diff in <a href="13aacd865c...ab5e6d0c87
">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/cache&package-manager=github_actions&previous-version=4.0.0&new-version=4.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
139 lines
5.0 KiB
YAML
139 lines
5.0 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
packages: write
|
|
|
|
jobs:
|
|
trigger-generate:
|
|
runs-on: ubuntu-latest
|
|
needs: [goreleaser]
|
|
steps:
|
|
- uses: benc-uk/workflow-dispatch@v121
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
with:
|
|
repo: goreleaser/goreleaser
|
|
ref: main
|
|
token: ${{ secrets.GH_PAT }}
|
|
workflow: generate.yml
|
|
notify-goreleaser-cross:
|
|
runs-on: ubuntu-latest
|
|
needs: [trigger-generate]
|
|
steps:
|
|
- name: get version
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
|
- name: notify goreleaser-cross with new release
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
uses: benc-uk/workflow-dispatch@v121
|
|
with:
|
|
token: ${{ secrets.GH_PAT }}
|
|
repo: goreleaser/goreleaser-cross
|
|
workflow: goreleaser-bump
|
|
inputs: '{ "tag" : "${{ env.RELEASE_TAG }}" }'
|
|
goreleaser-check-pkgs:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
|
needs: [goreleaser]
|
|
if: github.ref == 'refs/heads/main'
|
|
strategy:
|
|
matrix:
|
|
format: [deb, rpm, apk]
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
|
|
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
|
|
with:
|
|
path: |
|
|
./dist/*.deb
|
|
./dist/*.rpm
|
|
./dist/*.apk
|
|
key: ${{ github.ref }}
|
|
- run: task goreleaser:test:${{ matrix.format }}
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
|
|
- uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # v3
|
|
- name: setup-snapcraft
|
|
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
|
|
mkdir -p $HOME/.cache/snapcraft/download
|
|
mkdir -p $HOME/.cache/snapcraft/stage-packages
|
|
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
|
|
with:
|
|
go-version: stable
|
|
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
|
|
with:
|
|
path: |
|
|
./dist/*.deb
|
|
./dist/*.rpm
|
|
./dist/*.apk
|
|
key: ${{ github.ref }}
|
|
- uses: sigstore/cosign-installer@v3.4.0
|
|
- uses: anchore/sbom-action/download-syft@v0.15.8
|
|
- uses: crazy-max/ghaction-upx@v3
|
|
with:
|
|
install-only: true
|
|
- uses: cachix/install-nix-action@v25
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: dockerhub-login
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: ghcr-login
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: snapcraft-login
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
run: snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
|
|
- name: goreleaser-release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
|
|
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
|
|
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
|
|
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
|
|
MASTODON_CLIENT_ID: ${{ secrets.MASTODON_CLIENT_ID }}
|
|
MASTODON_CLIENT_SECRET: ${{ secrets.MASTODON_CLIENT_SECRET }}
|
|
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
|
|
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
|
|
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
|
|
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
AUR_KEY: ${{ secrets.AUR_KEY }}
|
|
run: task goreleaser
|