Skip to content

Commit

Permalink
Adding readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lewandy committed Nov 3, 2020
1 parent ec9111a commit 3f0f496
Showing 1 changed file with 61 additions and 2 deletions.
63 changes: 61 additions & 2 deletions README.md
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. 😉

0 comments on commit 3f0f496

Please sign in to comment.