Skip to content

Add release mirror CI job #9

Add release mirror CI job

Add release mirror CI job #9

Workflow file for this run

name: Mirror SDK
on:
push:
tags:
- "v*.*"
jobs:
download:
strategy:
matrix:
artifact_name:
- ohos-sdk-windows_linux-public.tar.gz
- L2-SDK-MAC-M1-PUBLIC.tar.gz
- ohos-sdk-mac-public.tar.gz
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download OpenHarmony SDK
run: ./download_sdk.sh
shell: bash
env:
# Relies on this job only running on tags!
INPUT_VERSION_TAG: "${{ github.ref_name }}"
INPUT_FILENAME: ${{ matrix.artifact_name}}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name}}
path: ${{ matrix.artifact_name}}*
compression-level: 0
create_release:
permissions: write-all
runs-on: ubuntu-latest
needs: ["download"]
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- run: ls -la
- name: Publish release
id: publish-release
run: |
artifacts=(./*)
gh release create ${{github.ref_name}} --notes "OpenHarmony SDK mirror release for ${{github.ref_name}}" "${artifacts[@]}"