-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f74c91
commit 9d50797
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# web-to-app-action | ||
|
||
Use this action to convert you website HTML/Web-assets to APK for Andriod. | ||
|
||
## Inputs | ||
|
||
### `build-folder-path` | ||
|
||
**Optional**. Defaults to "build/", It is the path where HTML/web-assets are stored. | ||
|
||
### `app-name` | ||
|
||
**Optional**. Defaults to "MyApp", It is the name of your app whose APK is created. | ||
|
||
### `output-folder-path` | ||
|
||
**Optional**. Defaults to "apk/", It is the path where all types of APK are stored (Debug and Release). | ||
|
||
|
||
## Example action workflow | ||
|
||
```yaml | ||
name: Convert build files to APK and upload to Github Artifacts | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
- uses: darkshredder/web-to-app-action@main | ||
with: | ||
build-folder-path: "build" # Defaults to build, It is the folder where build files or html are stored | ||
app-name: "Your-App-Name" # Defaults to MyApp | ||
output-folder-path: "my-apks" # Defaults to apk/, Where final APK files are created | ||
|
||
- name: 'Upload Artifact' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Final-apks | ||
path: my-apks/ # Should be same as "output-folder-path" | ||
``` |