Update config

This commit is contained in:
Hugo van Kemenade 2024-02-04 22:02:41 +02:00
parent 36d89a69e8
commit 5bccda1102
4 changed files with 14 additions and 4 deletions

View file

@ -30,12 +30,14 @@ jobs:
# Upload to Test PyPI on every commit on main. # Upload to Test PyPI on every commit on main.
release-test-pypi: release-test-pypi:
name: Publish in-dev package to test.pypi.org name: Publish in-dev package to test.pypi.org
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: |
github.repository_owner == 'pylast'
&& github.event_name == 'push'
&& github.ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-package needs: build-package
permissions: permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write id-token: write
steps: steps:
@ -53,12 +55,13 @@ jobs:
# Upload to real PyPI on GitHub Releases. # Upload to real PyPI on GitHub Releases.
release-pypi: release-pypi:
name: Publish released package to pypi.org name: Publish released package to pypi.org
if: github.event.action == 'published' if: |
github.repository_owner == 'pylast'
&& github.event.action == 'published'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-package needs: build-package
permissions: permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write id-token: write
steps: steps:

View file

@ -1,5 +1,8 @@
name: Sync labels name: Sync labels
permissions:
pull-requests: write
on: on:
push: push:
branches: branches:

View file

@ -2,6 +2,9 @@ name: Lint
on: [push, pull_request, workflow_dispatch] on: [push, pull_request, workflow_dispatch]
env:
FORCE_COLOR: 1
permissions: permissions:
contents: read contents: read

View file

@ -10,6 +10,7 @@ jobs:
permissions: permissions:
issues: write issues: write
pull-requests: write
steps: steps:
- uses: mheap/github-action-required-labels@v5 - uses: mheap/github-action-required-labels@v5