Skip to content

Commit

Permalink
Extract artifacts properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Jun 15, 2021
1 parent d57552f commit 8c398e1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: Branch-xcframework
name: framework.zip
path: |
carthage-files/build/Branch.zip
carthage-files/build/checksum
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: Branch-static-xcframework
name: static-framework.zip
path: |
carthage-files/build/Branch_static.zip
carthage-files/build/checksum_static
Expand Down Expand Up @@ -83,6 +83,15 @@ jobs:
bundle check || bundle install
- name: Download build artifacts
uses: actions/download-artifact@v2
- name: Extract build artifacts
run: |
unzip framework.zip
unzip static-framework.zip
- name: Relocate checksum artifacts
working-directory: carthage-files
run: |
mv build/checksum .
mv build/checksum_static .
- name: Verify build artifacts
working-directory: carthage-files
run: |
Expand All @@ -93,7 +102,7 @@ jobs:
run: |
git config user.name "Branch SDK Team"
git config user.email branch-sdks@branch.io
git commit carthage-files/build/checksum carthage-files/build/checksum_static -m'Updated checksums'
git commit carthage-files/checksum carthage-files/checksum_static -m'Updated checksums'
echo "::set-output name=sha::$(git rev-parse HEAD)"
# TODO: Version bump along the way, probably here.
- name: Push changes
Expand Down

0 comments on commit 8c398e1

Please sign in to comment.