We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 458e5f2 commit e829094Copy full SHA for e829094
.github/workflows/publish.yml
@@ -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