mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
- on a release (created from Github), publish to <https://github.com/unicode-org/icu/packages> as 1. icu4j-for-cldr 2. utilities-for-cldr - also fix a doc bug in DecimalFormat - this is intended for CLDR use. - a tag such as 'cldr/2019-09-15' will turn into a maven version '68.1-SNAPSHOT-cldr-2019-09-15'
40 lines
No EOL
1.5 KiB
YAML
40 lines
No EOL
1.5 KiB
YAML
name: Publish icu4j.jar/utilities.jar to GH Maven
|
|
on:
|
|
release:
|
|
types: [created]
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: icu4j ant releaseCLDR
|
|
run: ant -noinput releaseCLDR -f icu4j/build.xml
|
|
- name: deploy it
|
|
run: |
|
|
MYVERSION=$(sed -n -e 's%^\s*maven.pom.ver[ =]*%%p' < icu4j/build.properties)-$(echo ${GITHUB_REF} | cut -d/ -f3- | tr ./ _-)
|
|
echo Github Ref ${GITHUB_REF} @ ${GITHUB_SHA}, version ${MYVERSION}
|
|
mvn deploy:deploy-file -DgroupId=com.ibm.icu \
|
|
-DartifactId=icu4j-for-cldr \
|
|
-Dversion=${MYVERSION} \
|
|
-Dpackaging=jar \
|
|
-Dfile=icu4j/release_cldr/icu4j.jar \
|
|
-Dsources=icu4j/release_cldr/icu4j-src.jar \
|
|
-DrepositoryId=github \
|
|
-Durl=https://maven.pkg.github.com/${GITHUB_REPOSITORY}
|
|
mvn deploy:deploy-file -DgroupId=com.ibm.icu \
|
|
-DartifactId=utilities-for-cldr \
|
|
-Dversion=${MYVERSION} \
|
|
-Dpackaging=jar \
|
|
-Dfile=icu4j/release_cldr/utilities.jar \
|
|
-Dsources=icu4j/release_cldr/utilities-src.jar \
|
|
-DrepositoryId=github \
|
|
-Durl=https://maven.pkg.github.com/${GITHUB_REPOSITORY}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# Note: can use 0.0.0-${GITHUB_SHA} as the version for hash-based.
|
|
# i.e. build on every commit |