@@ -3,11 +3,11 @@ name: Packaging
33on :
44 push :
55 branches : [main]
6- tags : ["v*"] # run on version tags
6+ tags : ["v*"] # run on version tags
77 pull_request :
8- branches : [main] # run on PRs targeting main
8+ branches : [main] # run on PRs targeting main
99 release :
10- types : [published] # run on Github release
10+ types : [published] # run on Github release
1111
1212jobs :
1313 check :
4444
4545 build :
4646 name : Build source distribution
47- needs : [check, test] # wait for checks and tests
47+ needs : [check, test] # wait for checks and tests
4848 runs-on : ubuntu-latest
4949 steps :
5050 - uses : actions/checkout@v6
@@ -62,14 +62,14 @@ jobs:
6262
6363 publish-pypi :
6464 name : Publish on PyPI
65- needs : [build] # wait for build
66- if : github.event_name == 'release' # only on release
65+ needs : [build] # wait for build
66+ if : github.event_name == 'release' # only on release
6767 runs-on : ubuntu-latest
6868 environment :
6969 name : pypi
7070 url : https://pypi.org/p/django-webmention
7171 permissions :
72- id-token : write # required for trusted publishing
72+ id-token : write # required for trusted publishing
7373 steps :
7474 - uses : actions/download-artifact@v7
7575 with :
@@ -80,14 +80,14 @@ jobs:
8080
8181 publish-pypi-test :
8282 name : Publish on Test PyPI
83- needs : [build] # wait for build
84- if : startsWith(github.ref, 'refs/tags/') # only on tags
83+ needs : [build] # wait for build
84+ if : startsWith(github.ref, 'refs/tags/') # only on tags
8585 runs-on : ubuntu-latest
8686 environment :
8787 name : pypi-test
8888 url : https://test.pypi.org/p/django-webmention
8989 permissions :
90- id-token : write # required for trusted publishing
90+ id-token : write # required for trusted publishing
9191 steps :
9292 - uses : actions/download-artifact@v7
9393 with :
0 commit comments