Skip to content

Commit

Permalink
Update Release Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaronator committed Jan 2, 2025
1 parent b5e6d24 commit dacc2e8
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"

- name: Get Previous Release Tag and Determine Next Tag
id: determine-next-tag
uses: actions/github-script@v7
with:
github-token: "${{ steps.app-token.outputs.token }}"
result-encoding: string
script: |
const { data: releases } = await github.rest.repos.listReleases({
Expand Down Expand Up @@ -54,15 +46,8 @@ jobs:
return `${nextMajorMinor}.${nextPatch}`;
- name: Create Release
uses: actions/github-script@v7
- uses: ncipollo/release-action@v1
with:
github-token: "${{ steps.app-token.outputs.token }}"
script: |
await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: "${{ steps.determine-next-tag.outputs.result }}",
name: "${{ steps.determine-next-tag.outputs.result }}",
generate_release_notes: true,
});
generateReleaseNotes: true
tag: ${{ steps.determine-next-tag.outputs.result }}
name: ${{ steps.determine-next-tag.outputs.result }}

0 comments on commit dacc2e8

Please sign in to comment.