Skip to content

Commit 3f0f496

Browse files
committed
Adding readme
1 parent ec9111a commit 3f0f496

File tree

1 file changed

+61
-2
lines changed

1 file changed

+61
-2
lines changed

README.md

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,61 @@
1-
# vue-s3-deployer
2-
Github action to deploy Vue app to Amazon s3 bucket. 🚀📦
1+
# Vue s3 deployer 🚀
2+
3+
Github action for deploy Vue app to Amazon s3 bucket. 🚀📦
4+
5+
## Usage
6+
7+
In your workflow, define a step which refers to the action:
8+
9+
```yaml
10+
- name: Deploying application to Amazon S3
11+
uses: lewandy/vue-s3-deployer@master
12+
with:
13+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
14+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
15+
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
16+
AWS_BUCKET_NAME: vue-action
17+
APP_SOURCE_CODE: ./example
18+
```
19+
20+
# Complete example
21+
22+
This is a simple workflow for deploy Vue app using Vue s3 deployer action.
23+
24+
```yaml
25+
# This is a basic workflow to help you get started with Vue s3 deployer action
26+
27+
name: Deployment
28+
29+
# Controls when the action will run. Triggers the workflow on push or pull request
30+
# events but only for the main branch
31+
on:
32+
push:
33+
branches: [main]
34+
pull_request:
35+
branches: [main]
36+
37+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
38+
jobs:
39+
# This workflow contains a single job called "deploy"
40+
deploy:
41+
# The type of runner that the job will run on
42+
runs-on: ubuntu-latest
43+
44+
# Steps represent a sequence of tasks that will be executed as part of the job
45+
steps:
46+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
47+
- uses: actions/checkout@v2
48+
49+
- name: Deploying application to Amazon S3
50+
uses: lewandy/[email protected] # Uses an action in the root directory
51+
with:
52+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
53+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
54+
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
55+
AWS_BUCKET_NAME: vue-action
56+
APP_SOURCE_CODE: ./example
57+
```
58+
59+
# Note ✏
60+
61+
Remember save your amazon account credentials in repository secrets, stay safely guys. 😉

0 commit comments

Comments
 (0)