-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
1 changed file
with
61 additions
and
2 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,2 +1,61 @@ | ||
# vue-s3-deployer | ||
Github action to deploy Vue app to Amazon s3 bucket. 🚀📦 | ||
# Vue s3 deployer 🚀 | ||
|
||
Github action for deploy Vue app to Amazon s3 bucket. 🚀📦 | ||
|
||
## Usage | ||
|
||
In your workflow, define a step which refers to the action: | ||
|
||
```yaml | ||
- name: Deploying application to Amazon S3 | ||
uses: lewandy/vue-s3-deployer@master | ||
with: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
AWS_BUCKET_NAME: vue-action | ||
APP_SOURCE_CODE: ./example | ||
``` | ||
# Complete example | ||
This is a simple workflow for deploy Vue app using Vue s3 deployer action. | ||
```yaml | ||
# This is a basic workflow to help you get started with Vue s3 deployer action | ||
|
||
name: Deployment | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the main branch | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "deploy" | ||
deploy: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Deploying application to Amazon S3 | ||
uses: lewandy/[email protected] # Uses an action in the root directory | ||
with: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
AWS_BUCKET_NAME: vue-action | ||
APP_SOURCE_CODE: ./example | ||
``` | ||
# Note ✏ | ||
Remember save your amazon account credentials in repository secrets, stay safely guys. 😉 |