Skip to content
Merged
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
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
types:
- published

permissions:
contents: write
id-token: write

jobs:
release:
runs-on: depot-ubuntu-latest-16
Expand Down Expand Up @@ -34,14 +38,19 @@ jobs:
run: pnpm install --frozen-lockfile --ignore-scripts
working-directory: npm

- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::375021575472:role/github-actions
aws-region: us-east-1

- name: Compute tag name
id: tag-name
run: echo "::set-output name=tag-name::${GITHUB_REF#refs/tags/}"
run: echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- uses: goreleaser/goreleaser-action@v5
with:
version: 1.19.0
args: release
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ steps.tag-name.outputs.tag-name }}
Expand Down
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ archives:
changelog:
skip: true

blobs:
- provider: s3
region: us-east-1
bucket: depot-binaries
folder: "cli/{{ .Tag }}"

brews:
- repository:
owner: depot
Expand Down
Loading