Skip to content

Commit

Permalink
Merge pull request #6 from dark0dave/fix/githubActionsRelease
Browse files Browse the repository at this point in the history
fix(release): Fix github actions release
  • Loading branch information
dark0dave authored Apr 20, 2023
2 parents 1e41e4e + 8450e5c commit a59eea3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/changelog.yml

This file was deleted.

20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,31 @@ on:
- v[0-9]+.*

jobs:
build:
uses: ./.github/workflows/build.yml
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
- name: Get the tag
id: get_tag
run: echo ::set-output name=git_tag::${GITHUB_REF/refs\/tags\//}
- name: "✏️ Generate release changelog"
id: changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_tag.outputs.git_tag }}
release_name: ${{ steps.get_tag.outputs.git_tag }}
body: ${{ steps.changelog.outputs.changelog }}
draft: ${{ startsWith(steps.get_tag.outputs.git_tag, 'nightly') != true }}
prerelease: ${{ startsWith(steps.get_tag.outputs.git_tag, 'nightly') }}
release-artifacts:
name: Release Artifacts
runs-on: ubuntu-latest
Expand Down

0 comments on commit a59eea3

Please sign in to comment.