Skip to content

Commit

Permalink
ci: deploy swift package
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinjul committed Nov 27, 2023
1 parent 56556a7 commit 991805d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/actions/createSwiftPackage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ runs:
- name: Create Swift Package
shell: bash
run: ./gradlew createSwiftPackage
- name: Remove zips
shell: bash
run: rm */build/swiftpackage/*.zip
- uses: actions/upload-artifact@v3
with:
name: oidc-swiftpackages
path: oidc-*/build/swiftpackage/*.zip
path: oidc-*/build/swiftpackage/*
6 changes: 3 additions & 3 deletions .github/workflows/actions/deploySwiftPackage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ runs:
git config --global user.name "Julian Kalinowski"
git config --global user.email "[email protected]"
ls -R
rm */build/swiftpackage/*.zip
echo "oidc-core"
cd ${GITHUB_WORKSPACE}/oidc-core/build/swiftpackage/oidc-core-ios
echo "${GITHUB_WORKSPACE}/oidc-core/build/swiftpackage/"
cd ${GITHUB_WORKSPACE}/oidc-core/build/swiftpackage/
git init
git checkout -b ${{ inputs.branch }}
git add -A
Expand All @@ -29,4 +29,4 @@ runs:
git rebase origin/${{ inputs.branch }}
git push origin ${{ inputs.branch }}
echo "oidc-appsupport"
cd ${GITHUB_WORKSPACE}/oidc-core/build/swiftpackage/oidc-appsupport-ios
cd ${GITHUB_WORKSPACE}/oidc-appsupport/build/swiftpackage/
2 changes: 1 addition & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: ./.github/workflows/actions/test

create-swift-package:
needs: [ build ]
needs: [ build, test]
runs-on: macos-13
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 991805d

Please sign in to comment.