Skip to content

Add release mirror CI job #8

Add release mirror CI job

Add release mirror CI job #8

Workflow file for this run

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
permissions: write-all
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: publish-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{github.ref_name}} --notes "OpenHarmony SDK mirror release for ${{github.ref_name}}" ${{ matrix.artifact_name}} ${{ matrix.artifact_name}}.sha256