diff --git a/.github/workflows/deploy-with-kmm-bridge.yml b/.github/workflows/deploy-with-kmm-bridge.yml index 65f4b91..e103ec9 100644 --- a/.github/workflows/deploy-with-kmm-bridge.yml +++ b/.github/workflows/deploy-with-kmm-bridge.yml @@ -103,6 +103,30 @@ jobs: name: ${{ steps.autoversion.outputs.nextVersion }} path: ${{ steps.autoversion.outputs.nextVersion }}.zip + - name: Create Tag + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git tag -a ${{ steps.autoversion.outputs.nextVersion }} -m "Release version ${{ steps.autoversion.outputs.nextVersion }}" + git push origin v1.0.0 + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: ${{ steps.autoversion.outputs.nextVersion }} + release_name: Release version ${{ steps.autoversion.outputs.nextVersion }} + body: Updates for ${{ steps.autoversion.outputs.nextVersion }} + + - name: Attach Artifact to Release + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ steps.autoversion.outputs.nextVersion }}.zip + asset_name: ${{ steps.autoversion.outputs.nextVersion }}.zip + asset_content_type: application/zip + + env: PODSPEC_SSH_KEY_EXISTS: ${{ secrets.PODSPEC_SSH_KEY != ''}} MODULE: ${{ inputs.module != '' && format('{0}:',inputs.module) || '' }}