diff --git a/.github/workflows/publish_swift_package.yml b/.github/workflows/publish_swift_package.yml index 285b555..ab295db 100644 --- a/.github/workflows/publish_swift_package.yml +++ b/.github/workflows/publish_swift_package.yml @@ -5,7 +5,7 @@ on: jobs: build: - name: 🔨 Build & Publish + name: 🔨 Build runs-on: macos-latest steps: - name: Checkout @@ -22,7 +22,7 @@ jobs: - name: Build iOS framework id: buildPackage - run: ./gradlew createSwiftPackage --stacktrace + run: ./gradlew :daraja:createSwiftPackage --stacktrace - name: Upload Swift Package directory uses: actions/upload-artifact@v3 @@ -31,6 +31,20 @@ jobs: path: daraja/swiftpackage retention-days: 1 + push: + name: 📤 Push to Swift Repo + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download directory with swift package + uses: actions/download-artifact@v4 + with: + name: swiftpackage + path: swiftpackage + - name: Display structure of downloaded files run: ls -R