Skip to content

Commit

Permalink
workflow update (#4)
Browse files Browse the repository at this point in the history
* workflow update
  • Loading branch information
milost77 authored Nov 15, 2023
1 parent 9a12907 commit 3d09abf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- master

jobs:
build_rust:
uses: ./.github/workflows/build-rust-cross-platform.yml

setup_php:
name: Setup PHP
runs-on: ubuntu-22.04

build_rust:
uses: ./.github/workflows/build-rust-cross-platform.yml
needs:
- build_rust

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -67,7 +69,7 @@ jobs:
for ((i=0; i<${#platforms[@]}; i++)); do
cp "temp/${platforms[$i]}/${files[$i]}" "languages/php/src/lib/${platforms[$i]}/${files[$i]}"
done
shell: bash
- name: Publish version
run: curl -XPOST -H'content-type:application/json' 'https://packagist.org/api/update-package?username=malirobot&apiToken=${{secrets.PACKAGIST_KEY}}' -d'{"repository":{"url":"https://packagist.org/packages/bitwarden/sdk"}}'
working-directory: languages/php/

0 comments on commit 3d09abf

Please sign in to comment.