Skip to content

Commit

Permalink
Merge branch 'release/1.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Jun 18, 2020
2 parents a15fb09 + d8bed93 commit b41f091
Show file tree
Hide file tree
Showing 10 changed files with 260,442 additions and 256,644 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [1.1.4] - 2020-06-18
### Added
* Add "functions-dir" input to deploy Netlify Functions [#191](https://github.com/nwtgck/actions-netlify/pull/191) by [@fmr](https://github.com/fmr)

## [1.1.3] - 2020-06-13
### Added
* Add "production-deploy" input to deploy as Netlify production deploy [#188](https://github.com/nwtgck/actions-netlify/pull/188) by [@gvdp](https://github.com/gvdp)
Expand Down Expand Up @@ -111,7 +115,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
* Deploy to Netlify
* Comment on GitHub PR

[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.1.3...HEAD
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.1.4...HEAD
[1.1.4]: https://github.com/nwtgck/actions-netlify/compare/v1.1.3...v1.1.4
[1.1.3]: https://github.com/nwtgck/actions-netlify/compare/v1.1.2...v1.1.3
[1.1.2]: https://github.com/nwtgck/actions-netlify/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/nwtgck/actions-netlify/compare/v1.1.0...v1.1.1
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
```
Expand All @@ -59,6 +60,7 @@ jobs:
- `enable-commit-comment: true` Comment on GitHub commit (default: true)
- `overwrites-pull-request-comment: true` Overwrites comment on pull request (default: true)
- `netlify-config-path: ./netlify.toml` Path to `netlify.toml` (default: undefined)
- `functions-dir` Netlify functions output directory (default: undefined)
- `alias` Specifies the prefix for the deployment URL (default: Netlify build ID)
- `alias: ${{ github.head_ref }}` replicates the [branch deploy prefix](https://docs.netlify.com/site-deploys/overview/#definitions)
- `alias: deploy-preview-${{ github.event.number }}` replicates the [deploy preview prefix](https://docs.netlify.com/site-deploys/overview/#definitions)
Expand Down
14 changes: 14 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ describe('defaultInputs', () => {
})
})

describe('functionsDir', () => {
test('it should be a string when specified', () => {
withInput('functions-dir', './my_functions_dir', () => {
const functionsDir: string | undefined = defaultInputs.functionsDir()
expect(functionsDir).toBe('./my_functions_dir')
})
})

test('it should be undefined when not specified', () => {
const functionsDir: string | undefined = defaultInputs.functionsDir()
expect(functionsDir).toBe(undefined)
})
})

describe('deployMessage', () => {
test('it should be a string when specified', () => {
withInput('deploy-message', 'Deploy with GitHub Actions', () => {
Expand Down
Loading

4 comments on commit b41f091

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.