Skip to content

Commit 9d50797

Browse files
authored
Initialized README.md
1 parent 8f74c91 commit 9d50797

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# web-to-app-action
2+
3+
Use this action to convert you website HTML/Web-assets to APK for Andriod.
4+
5+
## Inputs
6+
7+
### `build-folder-path`
8+
9+
**Optional**. Defaults to "build/", It is the path where HTML/web-assets are stored.
10+
11+
### `app-name`
12+
13+
**Optional**. Defaults to "MyApp", It is the name of your app whose APK is created.
14+
15+
### `output-folder-path`
16+
17+
**Optional**. Defaults to "apk/", It is the path where all types of APK are stored (Debug and Release).
18+
19+
20+
## Example action workflow
21+
22+
```yaml
23+
name: Convert build files to APK and upload to Github Artifacts
24+
on: push
25+
26+
jobs:
27+
build:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
node-version: [16.x]
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Use Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@v2
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
cache: 'npm'
40+
41+
- run: npm install
42+
- run: npm run build
43+
44+
- uses: darkshredder/web-to-app-action@main
45+
with:
46+
build-folder-path: "build" # Defaults to build, It is the folder where build files or html are stored
47+
app-name: "Your-App-Name" # Defaults to MyApp
48+
output-folder-path: "my-apks" # Defaults to apk/, Where final APK files are created
49+
50+
- name: 'Upload Artifact'
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: Final-apks
54+
path: my-apks/ # Should be same as "output-folder-path"
55+
```

0 commit comments

Comments
 (0)