Skip to content

feat: add adaptative colors for both light and dark terminals #4

feat: add adaptative colors for both light and dark terminals

feat: add adaptative colors for both light and dark terminals #4

Workflow file for this run

name: goreleaser
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: write
# packages: write
# issues: write
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
jobs:
goreleaser:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Generate Release Notes
run: python ./.github/scripts/generate-release-notes.py # outputs a file named "changelog-temp.md"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: nightly
args: release --clean --release-notes changelog-temp.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}