mirror of
https://github.com/tsukumijima/libmali-rockchip.git
synced 2026-01-23 16:00:49 +01:00
CI: Fix permissions
Some checks failed
Build and Release Debian Package / Build and Release Debian Package (push) Has been cancelled
Some checks failed
Build and Release Debian Package / Build and Release Debian Package (push) Has been cancelled
This commit is contained in:
parent
a894c6dda6
commit
cbad2d4814
1 changed files with 15 additions and 0 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -11,6 +11,9 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
|
||||
build-and-release:
|
||||
|
|
@ -84,8 +87,20 @@ jobs:
|
|||
echo "short=$(git rev-parse --short=7 HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Release
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: v${{ steps.get_version.outputs.version }}-${{ steps.get_commit_hash.outputs.date }}-${{ steps.get_commit_hash.outputs.short }}
|
||||
tag_name: v${{ steps.get_version.outputs.version }}-${{ steps.get_commit_hash.outputs.date }}-${{ steps.get_commit_hash.outputs.short }}
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
./*.deb
|
||||
|
||||
- name: Release (workflow_dispatch)
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_PAT }}
|
||||
name: v${{ steps.get_version.outputs.version }}-${{ steps.get_commit_hash.outputs.date }}-${{ steps.get_commit_hash.outputs.short }}
|
||||
tag_name: v${{ steps.get_version.outputs.version }}-${{ steps.get_commit_hash.outputs.date }}-${{ steps.get_commit_hash.outputs.short }}
|
||||
target_commitish: ${{ steps.get_commit_hash.outputs.full }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue