mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
38c8436863
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [arduino/setup-task](https://github.com/arduino/setup-task) from 1.0.1 to 1.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/arduino/setup-task/releases">arduino/setup-task's releases</a>.</em></p> <blockquote> <h2>1.0.2</h2> <h2>Release Notes</h2> <h3>Changelog</h3> <h4>Enhancement</h4> <ul> <li>Run action with Node.js 16 (<a href="https://github-redirect.dependabot.com/arduino/setup-task/pull/552">arduino/setup-task#552</a>)</li> <li>Various dependency updates</li> </ul> <h3>Contributors</h3> <ul> <li><a href="https://github.com/kasperg"><code>@kasperg</code></a></li> </ul> <hr /> <p><strong>Full Changeset</strong>: <a href="https://github.com/arduino/setup-task/compare/1.0.1...1.0.2">https://github.com/arduino/setup-task/compare/1.0.1...1.0.2</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="d665c6beeb
"><code>d665c6b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/arduino/setup-task/issues/554">#554</a> from arduino/dependabot/npm_and_yarn/types/node-16.11.65</li> <li><a href="f911dc0bbc
"><code>f911dc0</code></a> build(deps-dev): bump <code>@types/node</code> from 16.11.64 to 16.11.65</li> <li><a href="2cdd1760c6
"><code>2cdd176</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/arduino/setup-task/issues/555">#555</a> from arduino/dependabot/npm_and_yarn/typescript-eslin...</li> <li><a href="0238d42112
"><code>0238d42</code></a> build(deps-dev): bump <code>@typescript-eslint/eslint-plugin</code></li> <li><a href="b592b746bd
"><code>b592b74</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/arduino/setup-task/issues/553">#553</a> from arduino/dependabot/npm_and_yarn/typescript-eslin...</li> <li><a href="1b72357a23
"><code>1b72357</code></a> build(deps-dev): bump <code>@typescript-eslint/parser</code> from 5.38.1 to 5.40.0</li> <li><a href="eea6bc2215
"><code>eea6bc2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/arduino/setup-task/issues/551">#551</a> from arduino/dependabot/npm_and_yarn/eslint-8.25.0</li> <li><a href="c36e056867
"><code>c36e056</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/arduino/setup-task/issues/552">#552</a> from kasperg/patch-1</li> <li><a href="ba0113b2fc
"><code>ba0113b</code></a> Bump Node version from 12 to 16</li> <li><a href="1bdabdfc86
"><code>1bdabdf</code></a> build(deps-dev): bump eslint from 8.24.0 to 8.25.0</li> <li>Additional commits viewable in <a href="ca745e1891...d665c6beeb
">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=arduino/setup-task&package-manager=github_actions&previous-version=1.0.1&new-version=1.0.2)](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 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>
106 lines
3.7 KiB
YAML
106 lines
3.7 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
packages: write
|
|
|
|
jobs:
|
|
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@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: arduino/setup-task@d665c6beebae46ff3f699d7b2fd3f1959de7153c # v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # v1
|
|
- uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3
|
|
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@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: arduino/setup-task@d665c6beebae46ff3f699d7b2fd3f1959de7153c # v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # v1
|
|
- uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v1
|
|
- 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@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3
|
|
with:
|
|
go-version: '>=1.19.2'
|
|
cache: true
|
|
- uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3
|
|
with:
|
|
path: |
|
|
./dist/*.deb
|
|
./dist/*.rpm
|
|
./dist/*.apk
|
|
key: ${{ github.ref }}
|
|
- uses: sigstore/cosign-installer@v2.8.0
|
|
- uses: anchore/sbom-action/download-syft@v0.12.0
|
|
- name: dockerhub-login
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: ghcr-login
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v1
|
|
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 }}
|
|
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
|