-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit aa9f417
Showing
761 changed files
with
116,607 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,29 @@ | ||
# Adonis Build Action | ||
|
||
A Github Action for building Adonis projects and optionally pushing it to a different branch | ||
|
||
## Usage | ||
|
||
``` | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v3 | ||
- name: Build and push | ||
uses: dmdboi/adonis-build-action | ||
with: | ||
pushToBranch: true # optional; can either be true or false | defaults to false | ||
branch: 'dist' # optional; the name of the branch the action should push the compiled code to | defaults to dist | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} # required if you use the pushToBranch option | ||
``` | ||
|
||
## Credit | ||
|
||
Inspired by @alexthemasters [action-build-typescript](https://github.com/alexthemaster/action-build-typescript) |
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,20 @@ | ||
name: 'Adonis Build Action' | ||
description: 'Build Adonis Projects' | ||
author: 'Max Diamond' | ||
branding: | ||
color: 'purple' | ||
icon: 'loader' | ||
inputs: | ||
pushToBranch: | ||
description: 'Whether or not to push the compiled code to a different branch' | ||
required: false | ||
branch: | ||
description: 'The name of the branch the action should push the compiled code' | ||
required: false | ||
default: 'dist' | ||
githubToken: | ||
description: 'Your GitHub secret token' | ||
required: false | ||
runs: | ||
using: 'node16' | ||
main: src/index.js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.