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.
release-test-pypi:
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
needs: build-package
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
@ -53,12 +55,13 @@ jobs:
# Upload to real PyPI on GitHub Releases.
release-pypi:
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
needs: build-package
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:

View file

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

View file

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

View file

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