Fix release workflow
This commit is contained in:
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@@ -10,6 +10,11 @@ on:
|
|||||||
description: 'target if new tag'
|
description: 'target if new tag'
|
||||||
default: master
|
default: master
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
id-token: write
|
||||||
|
attestations: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: NickelMenu
|
name: NickelMenu
|
||||||
@@ -49,6 +54,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
retries: 3 # note: this applies to individual github.rest calls, not the entire script
|
retries: 3 # note: this applies to individual github.rest calls, not the entire script
|
||||||
script: |
|
script: |
|
||||||
|
const {readFile} = require('fs').promises
|
||||||
await github.rest.repos.uploadReleaseAsset({
|
await github.rest.repos.uploadReleaseAsset({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
Reference in New Issue
Block a user