Skip to content

Commit

Permalink
Correct checksum files. Separate release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Jun 15, 2021
1 parent 7c928cf commit f28a1fe
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
xcodebuild -scheme Branch-xcframework
cd build
zip -rqy Branch.zip Branch.xcframework/
echo '#checksum for Branch.zip on Github' > checksum.txt
echo '#checksum for Branch.zip on Github' > checksum
shasum Branch.zip >> checksum
- name: Upload build artifacts
uses: actions/upload-artifact@v2
Expand All @@ -44,7 +44,7 @@ jobs:
xcodebuild -scheme Branch-static-xcframework
cd build
zip -rqy Branch_static.zip Branch.xcframework/
echo '#checksum for Branch-static.zip on Github' > checksum.txt
echo '#checksum for Branch-static.zip on Github' > checksum_static
shasum Branch_static.zip >> checksum_static
- name: Upload build artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -119,13 +119,17 @@ jobs:
sha,
version: tagName,
});
const { uploadUrl } = await github.repos.getReleaseByTag({
- name: Upload Release Assets
uses: actions/github-script@v4
with:
script: |
const data = await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tagName,
});
const uploadUrl = data.upload_url;
console.log(`Using upload URL for release assets: ${uploadUrl}.`);
const uploadAsset = require('./.github/custom-scripts/upload-asset');
Expand Down Expand Up @@ -157,9 +161,10 @@ jobs:
contentType: 'text/plain',
uploadUrl,
});
console.log(`Created release ${tagName}:`);
console.log(` https://github.com/${{ env.GITHUB_REPOSITORY }}/release/${tagName}`);
- name: Report Release
run: |
echo "Created release ${{ github.event.inputs.tag }}:"
echo " https://github.com/${{ env.GITHUB_REPOSITORY }}/release/${{ github.event.inputs.tag }}"
# 4. Trigger import workflow in ios-spm repo.
- name: Export to ios-spm repository
uses: actions/github-script@v4
Expand Down

0 comments on commit f28a1fe

Please sign in to comment.