Skip to content

adjust github auth (#229) #3

adjust github auth (#229)

adjust github auth (#229) #3

name: Release by Changelog
on:
push:
branches:
- main
workflow_dispatch:
inputs:
branch:
description: 'Branch to create a release from'
required: true
default: 'main'
version:
description: 'Specify the semantic version for the release (vX.Y.Z)'
required: true
reason:
description: 'Reason for the manual release'
required: false
jobs:
release:
runs-on: ubuntu-latest
env:
GOPROXY: proxy.golang.org,direct
GOPRIVATE: github.com/c2fo,github.com/C2FO
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || github.ref_name }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.24
- name: Install and run ReleaseGen
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_REF_NAME: ${{ github.event.inputs.branch || github.ref_name }}
MANUAL_VERSION: ${{ github.event.inputs.version || '' }}
REASON: ${{ github.event.inputs.reason || '' }}
CUSTOM_CHANGE_TYPES: |
documentation:patch
run: |
go env -w GOPRIVATE=github.com/c2fo,github.com/C2FO
git config --global url."https://${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
go install github.com/c2fo/ep-tools/releasegen@latest
releasegen