-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add README for Github Actions generator
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
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,44 @@ | ||
# Github Actions | ||
|
||
The following command will generate a `.github/workflows/build.yml` file in your project: | ||
|
||
```bash | ||
fluentci gh init -t android_pipeline | ||
``` | ||
|
||
Or, if you already have a `.fluentci` folder (generated from `fluentci init -t android`) in your project: | ||
|
||
```bash | ||
fluentci gh init | ||
``` | ||
|
||
Generated file: | ||
|
||
```yaml | ||
# Do not edit this file directly. It is generated by Fluent Github Actions | ||
|
||
name: Build Android App | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denolib/setup-deno@v2 | ||
with: | ||
deno-version: v1.36 | ||
- name: Setup Fluent CI CLI | ||
run: deno install -A -r https://cli.fluentci.io -n fluentci | ||
- name: Setup Dagger | ||
run: | | ||
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh | ||
sudo mv bin/dagger /usr/local/bin | ||
dagger version | ||
- name: Run Build | ||
run: dagger run fluentci android_pipeline assembleRelease | ||
``` | ||
Feel free to edit the template generator at `.fluentci/src/github/config.ts` to your needs. |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { generateYaml } from "./config.ts"; | ||
|
||
generateYaml().save(".github/workflows/tests.yml"); | ||
generateYaml().save(".github/workflows/build.yml"); |