Allow workflow to upload assets
This commit is contained in:
parent
b2980afcd1
commit
05a1099fd0
1 changed files with 5 additions and 3 deletions
8
.github/workflows/tags.yaml
vendored
8
.github/workflows/tags.yaml
vendored
|
|
@ -82,7 +82,7 @@ jobs:
|
|||
script: |
|
||||
const version = context.ref.replace('refs/tags/v', '');
|
||||
const branch = `release-${version}`;
|
||||
const base = 'main'; // или другая основная ветка
|
||||
const base = 'main';
|
||||
|
||||
const prs = await github.rest.pulls.list({
|
||||
owner: context.repo.owner,
|
||||
|
|
@ -97,7 +97,7 @@ jobs:
|
|||
repo: context.repo.repo,
|
||||
head: branch,
|
||||
base: base,
|
||||
title: `Release ${version}`,
|
||||
title: `${version}`,
|
||||
body: `This PR prepares the release \`${version}\`.`,
|
||||
draft: true
|
||||
});
|
||||
|
|
@ -124,7 +124,7 @@ jobs:
|
|||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag_name: tag,
|
||||
name: `Release ${tag}`,
|
||||
name: `${tag}`,
|
||||
draft: true,
|
||||
prerelease: false
|
||||
});
|
||||
|
|
@ -134,6 +134,8 @@ jobs:
|
|||
- name: Upload assets
|
||||
if: steps.check_release.outputs.skip == 'false'
|
||||
run: make upload_assets
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Delete pushed tag
|
||||
if: steps.check_release.outputs.skip == 'false'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue