Skip to content

Commit e829094

Browse files
authored
Create publish.yml
1 parent 458e5f2 commit e829094

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to Packagist
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
8+
jobs:
9+
# This workflow contains a single job called "build"
10+
build:
11+
# The type of runner that the job will run on
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
17+
- name: Call Packagist
18+
env:
19+
API_TOKEN: ${{ secrets.PackagistApiToken }}
20+
run: curl -XPOST -H'content-type:application/json' 'https://packagist.org/api/update-package?username=aligent&apiToken='$API_TOKEN -d'{"repository":{"url":"https://packagist.org/packages/aligent/bigcommerce-api-client"}}'
21+

0 commit comments

Comments
 (0)