Skip to content

Merge branch 'main' of https://github.com/SolidFaker/ohtotptoken #2

Merge branch 'main' of https://github.com/SolidFaker/ohtotptoken

Merge branch 'main' of https://github.com/SolidFaker/ohtotptoken #2

Workflow file for this run

name: build
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- ".gitignore"
- "**.md"
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
build_ohos:
name: Build for ohos
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup HarmonyOS CLI tools
uses: ErBWs/setup-ohos@v1
with:
version: latest
cache: true
- name: Install project dependencies
run: |
ohpm install --all
- name: Build hap
run: hvigorw clean assembleHap -p buildMode=release --config properties.ignoreSignHap=true
shell: bash
- name: Rename hap
run: cp /home/runner/work/ohtotptoken/ohtotptoken/entry/build/default/outputs/default/entry-default-unsigned.hap ohtotptoken_ohos_canary.hap
- name: Upload hap
uses: actions/upload-artifact@v4
with:
name: ohos_outputs
path: ohtotptoken_ohos_canary.hap
retention-days: 3