diff --git a/.github/workflows/publish-php.yml b/.github/workflows/publish-php.yml index c9bec9de2..318a2d19e 100644 --- a/.github/workflows/publish-php.yml +++ b/.github/workflows/publish-php.yml @@ -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 @@ -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/