Skip to content

updates to publish SDK #73

updates to publish SDK

updates to publish SDK #73

Workflow file for this run

name: Build and Publish SDK
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.4'
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: 'gradle'
- name: Build SDK
run: |
VERSION="${GITHUB_REF_NAME#v}"
echo "Building Lantern SDK version $VERSION"
make build-sdk VERSION=$VERSION
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
name: "Release ${{ github.ref_name }}"
body: "Automated release for version ${{ github.ref_name }}"
artifacts: "build/lanternsdk-android-${{ github.ref_name#v }}.aar"

Check failure on line 47 in .github/workflows/release.yml

GitHub Actions / Build and Publish SDK

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 47, Col: 22): Unexpected symbol: 'ref_name#v'. Located at position 8 within expression: github.ref_name#v
artifact_content_type: "application/zip"