Skip to content

Commit

Permalink
ci: don't use global permission
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Apr 17, 2024
1 parent 0e440d7 commit bef8375
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
name: Release

# The worklow won't work without this permissions
# https://github.com/softprops/action-gh-release?tab=readme-ov-file#permissions
permissions:
contents: write

on:
push:
tags:
- 'v*'

env:
PROJECT_NAME: neolite

jobs:
create-github-release:
name: Create GitHub Release
runs-on: ubuntu-22.04
# The worklow won't work without this permissions
# https://github.com/softprops/action-gh-release?tab=readme-ov-file#permissions
permissions:
contents: write
steps:

- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -59,6 +58,8 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand Down

0 comments on commit bef8375

Please sign in to comment.