Skip to content

Commit

Permalink
feat(workflow): automate release creation in GitHub Actions
Browse files Browse the repository at this point in the history
Add a step to the release workflow to automatically create a
release using GitHub CLI with generated notes. Utilize
`GH_TOKEN` from secrets for authentication.
  • Loading branch information
flemzord committed Oct 22, 2024
1 parent 9d641fa commit 5169664
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
- name: Generate OpenAPI final specification
run: >
earthly +build-final-spec --version=${{github.ref_name}}
- name: Create Release
run: gh release create ${{github.ref_name}} --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add the OpenAPI file to the release assets
run: >
gh release upload ${{github.ref_name}} ./releases/build/generate.json#openapi.json
Expand Down

0 comments on commit 5169664

Please sign in to comment.