Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,37 @@ jobs:
- name: Publish package
working-directory: wasm
run: pnpm publish --no-git-checks

chocolatey:
runs-on: windows-latest
needs:
- goreleaser
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0

- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable

- name: Verify go.mod is tidy
run: |
go mod tidy
git diff --exit-code

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
with:
version: "~> v2"
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 45 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,48 @@ release:
prerelease: auto
draft: true
name_template: "{{ .Tag }}"

chocolateys:
Comment thread
Mia-Cross marked this conversation as resolved.
- name: scaleway-cli

# IDs of the archives to use.
# Empty means all IDs.
# Attention: archives must not be in the 'binary' format.
ids:
- binaries

package_source_url: https://scaleway.com/cli
owners: Scaleway
authors: DevTools Team

# Your app's project url.
# It is a required field.
project_url: https://github.com/scaleway/scaleway-cli

icon_url: "https://github.com/scaleway/scaleway-cli/blob/main/docs/static_files/cli-artwork.png"
copyright: 2019 Scaleway
license_url: https://github.com/scaleway/scaleway-cli/blob/main/LICENSE
require_license_acceptance: false

project_source_url: https://github.com/scaleway/scaleway-cli
docs_url: https://cli.scaleway.com
bug_tracker_url: https://github.com/scaleway/scaleway-cli/issues

tags: "scaleway-cli scaleway scw"
summary: Scaleway CLI is a tool to help you pilot your Scaleway infrastructure directly from your terminal.
description: |
The Scaleway CLI allows you to interact with Scaleway APIs using a command line interface.
You can create, update, delete, list or get information about all types of resources.

release_notes: "https://github.com/scaleway/scaleway-cli/releases/tag/v{{ .Version }}"

# The API key that should be used to push to the Chocolatey repository.
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"

# The source repository that will push the package to.
source_repo: "https://push.chocolatey.org/"

# Setting this will prevent GoReleaser to actually try to push the package
# to Chocolatey repository, leaving the responsibility of publishing it to
# the user.
skip_publish: true
Loading