Skip to content

Commit

Permalink
add README for Github Actions generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 17, 2023
1 parent 443bb5c commit f22d3ce
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions src/github/README.md
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.
2 changes: 1 addition & 1 deletion src/github/init.ts
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");

0 comments on commit f22d3ce

Please sign in to comment.