Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix release, naming tag #73

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/release_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Set plugin version on env
run: |
PLUGIN_VERSION=$(find . -name "*.h" -exec grep -H 'PLUGIN_VERSION = ' {} \; | awk -F'"' '{print $2}')
echo "PLUGIN_VERSION=v${PLUGIN_VERSION}" >> $GITHUB_ENV

- name: Download, copy and unzip the lastest Google Mobile Ads SDK on release binaries and iOS module folder
run: |
curl -LO https://dl.google.com/googleadmobadssdk/googlemobileadssdkios.zip
Expand All @@ -21,9 +30,10 @@ jobs:
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
target_commit: ${{ github.ref_name }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: googlemobileadssdkios.zip
tag: ${{ github.ref }}
tag: ${{env.PLUGIN_VERSION}}
overwrite: true

ios-template:
Expand Down
Loading