Add release mirror CI job #3
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: 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: 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 |