https://github.com/serverless-devs/serverless-devs-initialization-action
:octocat: This is actions initializing serverless deployment environment
https://github.com/serverless-devs/serverless-devs-initialization-action
Last synced: 11 months ago
JSON representation
:octocat: This is actions initializing serverless deployment environment
- Host: GitHub
- URL: https://github.com/serverless-devs/serverless-devs-initialization-action
- Owner: Serverless-Devs
- License: mit
- Created: 2020-11-18T02:34:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-30T01:54:55.000Z (over 4 years ago)
- Last Synced: 2025-04-27T05:34:10.176Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/Serverless-Devs/serverless-devs-initialization-action/blob/master/LICENSE)
# Serverless-Devs Initialization Action For Github Actions
Install [Serverless-Devs](https://github.com/Serverless-Devs/Serverless-Devs) tool and configure its credentials for use in other Github Actions.
**Table of Contents**
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Credentials](#credentials)
- [License Summary](#license-summary)
## Prerequisites
You should be familiar with Serverless-Devs tool. For more information, see:
* "[Serverless-Devs](https://github.com/Serverless-Devs/Serverless-Devs)"
## Usage
Currently, Serverless-Devs supports the following global configuration vendors (in alphabetical order):
| Cloud Vendor | Name | Shorthand |
| ---- | ---- | ---- |
| Alibaba Cloud Database (DRDS) | Alibaba Cloud | alibaba |
| AWS | AWS | aws |
| Azure | Azure | Azure |
| Baiduyun | Baidu Cloud | baidu |
| Google Cloud | Google Cloud | Google |
| Huawei | Huawei Cloud | Huawei |
| Tencent | Tencent Cloud | Tencent |
The input credentials of the action are different for different cloud platform. Alibaba is taken as an example in the following step:
```yaml
- name: Initializing Serverless-Devs
uses: Serverless-Devs/Serverless-Devs-Initialization-Action@main
with:
AccountID: ${{ secrets.ALIYUN_ACCOUNT_ID }}
AccessKeyID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
AccessKeySecret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
```
See [action.yml](action.yml) for the full documentation for this action's inputs.
The application of Serverless-Devs Initialization Actions can refer to [Serverless CI/CD](https://github.com/git-qfzhang/serverless-cicd)
## Credentials
Do not store credentials in your repository's code. You may use [GitHub Actions secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) to store credentials and redact credentials from GitHub Actions workflow logs.
## License Summary
This code is made available under the MIT license.