forked from Mirrors/Dispatcharr
Updated permissions for releases.
This commit is contained in:
parent
8d79087fba
commit
10f687acb1
2 changed files with 17 additions and 0 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -6,6 +6,11 @@ on:
|
|||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
|
||||
# Add explicit permissions for the workflow
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write # For publishing to GitHub Container Registry
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
|
@ -13,6 +13,11 @@ on:
|
|||
- minor
|
||||
- patch
|
||||
|
||||
# Add explicit permissions for the workflow
|
||||
permissions:
|
||||
contents: write # For managing releases and pushing tags
|
||||
packages: write # For publishing to GitHub Container Registry
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -39,6 +44,13 @@ jobs:
|
|||
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
|
||||
echo "lowercase=$REPO_OWNER" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Commit and Tag
|
||||
run: |
|
||||
git add version.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue