Skip to content

Commit

Permalink
Add auto update package on push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tansautn committed Oct 13, 2024
1 parent 39d0764 commit 1880f01
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update Packagist

on:
push:
branches:
- master

jobs:
update-packagist:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Update Packagist
env:
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
run: |
curl -X POST \
-H "Content-Type:application/json" \
-d '{"username": "${{ env.PACKAGIST_USERNAME }}", "apiToken": "${{ env.PACKAGIST_TOKEN }}"}' \
https://packagist.org/api/update/zuko/flex2cell

0 comments on commit 1880f01

Please sign in to comment.