1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

fix GitHub release action

This commit is contained in:
Christian Giese
2023-04-05 20:19:28 +00:00
parent f4a1a97680
commit dafe5fd95f

View File

@@ -21,28 +21,11 @@ jobs:
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: "Create Release"
uses: "actions/github-script@v6"
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
try {
const response = await github.rest.repos.createRelease({
draft: false,
generate_release_notes: true,
name: ${{ steps.ref_name.outputs.SOURCE_TAG }},
owner: context.repo.owner,
prerelease: false,
repo: context.repo.repo,
tag_name: ${{ steps.ref_name.outputs.SOURCE_TAG }},
body: RtBrick BNG Blaster Version ${{ steps.ref_name.outputs.SOURCE_TAG }},
});
core.exportVariable('RELEASE_ID', response.data.id);
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
} catch (error) {
core.setFailed(error.message);
}
tag: ${{ steps.ref_name.outputs.SOURCE_TAG }}
bodyFile: "RtBrick BNG Blaster Version ${{ steps.ref_name.outputs.SOURCE_TAG }}"
build:
name: Build Release ${{matrix.os}}