Skip to content

Commit 61a7e60

Browse files
chore: add create releases ci
1 parent e321c38 commit 61a7e60

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/create-releases.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@ jobs:
2020
with:
2121
repo: ${{ github.event.repository.full_name }}
2222
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
23-
24-
- name: Update Packagist
25-
run: |-
26-
curl -X POST -H 'Content-Type: application/json' 'https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}' -d '{"repository":"https://www.github.com/jacobzim-stl/pubtest-php"}'
27-
env: PACKAGIST_USERNAME: ${{ secrets.PHP_PUBLISHING_TEST_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }}
28-
PACKAGIST_SAFE_KEY: ${{ secrets.PHP_PUBLISHING_TEST_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_KEY }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Packagist
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
name: publish
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Update Packagist
17+
run: |-
18+
curl --fail-with-body -X POST -H 'Content-Type: application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}" -d '{"repository":"https://www.github.com/jacobzim-stl/pubtest-php"}'
19+
env:
20+
PACKAGIST_USERNAME: ${{ secrets.PHP_PUBLISHING_TEST_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }}
21+
PACKAGIST_SAFE_KEY: ${{ secrets.PHP_PUBLISHING_TEST_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_SAFE_KEY }}

0 commit comments

Comments
 (0)