Skip to content

Commit 90ed677

Browse files
Create main.yml
0 parents  commit 90ed677

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will build a Harmony OS project with Gradle and analyse the code using Sonar cloud.
2+
3+
name: Build
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
hello_world_job:
13+
runs-on: windows-latest
14+
name: Build and Analyse
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
- id: main
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
28+
uses: applibgroup/HarmonyOsSdk@v1.2
29+
- name: Upload Artifact
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: assets-for-download
33+
path: build\outputs\hap\debug\phone

0 commit comments

Comments
 (0)