Skip to content

Commit

Permalink
Merge pull request #2 from tangem/feature/IOS-6122_build_scripts
Browse files Browse the repository at this point in the history
iOS-6122: Add iOS build scripts
  • Loading branch information
m3g0byt3 authored Jul 9, 2024
2 parents de30521 + df007b7 commit 98cefa7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish release
run-name: Publish new release with changes from commit '${{ github.event.head_commit.message }}' (${{ github.sha }})
on:
push:
branches:
- 'main'

jobs:
create_tag_and_release:
name: Create tag and release
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}_create_tag_and_release
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Extract tag name from the commit message
id: extract_tag_name
env:
LATEST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
# Extract the very last part of the commit message (in parentheses)
RELEASE_TAG_NAME=$(echo $LATEST_COMMIT_MESSAGE | awk -F'[()]' '{print $(NF-1)}' | sed 's/[()]//g');
# Check if the string is empty
if [ -z "${RELEASE_TAG_NAME}" ]; then
echo "Can't extract release tag name from the commit message '${LATEST_COMMIT_MESSAGE}'"
exit 1
fi
# Pass extracted tag name back to the GH actions pipeline
echo "release_tag_name=${RELEASE_TAG_NAME}" >> $GITHUB_OUTPUT
- name: Create tag and release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
with:
tag_name: ${{ steps.extract_tag_name.outputs.release_tag_name }}
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
make_latest: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# Building and updating

###Deprecated, all builds are done by CI

1. Clone [Trust Wallet Core fork](https://github.com/tangem/wallet-core)
2. Install the required dependencies by following [the official guide](https://developer.trustwallet.com/wallet-core/building).
3. [Optional] Update **SwiftProtobuf** library:
Expand Down

0 comments on commit 98cefa7

Please sign in to comment.