Skip to content

Commit

Permalink
ci: set changelog for beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 17, 2024
1 parent e1906c9 commit f339f88
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/beta_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: beta release

on:
push:
branches: [ 'main' ]

jobs:
release:
strategy:
matrix:
platform: [ ubuntu-latest ]
go-version: [ '1.21' ]
name: Beta Release Changelog
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
# with:
# fetch-depth: 0

- name: changelog # or [email protected] if ensure the stable result
id: changelog
run: |
output=$(npx changelogen@latest) && formatted_output="changelog=${output}" && echo "${formatted_output}" > "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{secrets.MY_TOKEN}}

- name: Prerelease
uses: irongut/[email protected]
with:
token: ${{ secrets.MY_TOKEN }}
id: 170718825
prerelease: true
body: ${{ steps.changelog.outputs.changelog }}

0 comments on commit f339f88

Please sign in to comment.