Skip to content

Publish to packagecloud #14

Publish to packagecloud

Publish to packagecloud #14

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Install package_cloud gem
run: sudo gem install package_cloud --no-doc
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
# Action-scoped GitHub token used for downloading code, etc.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Cross-repo GitHub token for publishing to timescale/homebrew-tap
TAP_GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB_CLOUD }}
# AWS credentials for pushing to tiger-cli-releases S3 bucket
AWS_ACCESS_KEY_ID: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ORG_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
# PackageCloud credentials for publishing Linux packages
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}