Add release mirror CI job #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mirror SDK | |
on: | |
push: | |
tags: | |
- "v*.*" | |
jobs: | |
build: | |
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: Download OpenHarmony SDK | |
id: install_ohos_sdk | |
run: install_ohos_sdk.sh | |
shell: bash | |
if: ${{ inputs.cache != 'true' || steps.cache.outputs.cache-hit != 'true' }} | |
env: | |
# Relies on this job only running on tags! | |
INPUT_VERSION_TAG: "${{ github.ref_name }}" | |
INPUT_FILENAME: ${{ matrix.artifact_name}} | |
- name: Publish release | |
id: check-tag | |
run: | | |
gh release create ${{github.ref_name}} --notes "OpenHarmony SDK mirror release for ${{github.ref_name}}" ${{ matrix.artifact_name}} ${{ matrix.artifact_name}}.sha256 |