This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Check in dependencies - Update workflow for testing purposes - Bug fixes - Add LICENSE and README
- Loading branch information
1 parent
0cce4e4
commit 4295f13
Showing
145 changed files
with
11,827 additions
and
89 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 |
---|---|---|
@@ -1,12 +1,25 @@ | ||
on: push | ||
|
||
|
||
jobs: | ||
build: | ||
name: Build workflow | ||
name: Build stage | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
send_velocity_deployment: | ||
- uses: ./../../ | ||
- name: Send Velocity deployment | ||
- uses: actions/checkout@master | ||
|
||
- name: Run `npm build:production` | ||
run: npm run-script build:production | ||
|
||
report: | ||
name: Report stage | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Send Velocity deployment | ||
uses: ./ | ||
with: | ||
token: ${{ secrets.VELOCITY_DEPLOYMENT_TOKEN }} |
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
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,28 @@ | ||
# Velocity deployment reporter | ||
|
||
This is a simple GitHub action that will report deployments to [Velocity](https://codeclimate.com/velocity) | ||
|
||
### Usage | ||
|
||
In your workflow, define a step which refers to the action: | ||
|
||
```yml | ||
steps: | ||
# ... | ||
- name: Send Velocity deployment | ||
uses: codeclimate/velocity-deploy-action@master | ||
with: | ||
token: ${{ secrets.VELOCITY_DEPLOYMENT_TOKEN }} | ||
version: ${{ outputs.version }} | ||
environment: ${{ outputs.environment }} | ||
``` | ||
There are two possible inputs: | ||
- `token`: (string, required): The Velocity deployment token, which you can find on Velocity's settings. This should be provided as a secret, which you can add by visiting the GitHub repository's settings page. | ||
- `version`: (string) The version tag for the deploy (i.e. `b123`). If this action is triggered on a `deploy` event, it will also try to infer the environment from the event. Please note that the version must be unique for each deployment for the same repository and environment. In other words, if you already deployed a v1.0 for https://github.com/user/project in production, the next deploy for the same repository and environment must have a different version, or no version. | ||
- `environment`: (string) The environment of the deploy (i.e. `production`). | ||
|
||
### Copyright | ||
|
||
See [LICENSE](LICENSE.md) |
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
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
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.
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.