Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.06 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.06 KB

AliYun Fun GitHub Actions

Test Actions status License

This action installs and configures AliYun Fun command line tool for use in your GitHub Action steps.

Usage

steps:
- uses: actions/checkout@v1
- uses: hughcube/[email protected]
- name: Deploy to Fun
  env:
    REGION: cn-shenzhen
    ACCOUNT_ID: ${{ secrets.ALIYUN_FUN_ACCOUNT_ID }}
    ACCESS_KEY_ID: ${{ secrets.ALIYUN_FUN_ACCESS_KEY_ID }}
    ACCESS_KEY_SECRET: ${{ secrets.ALIYUN_FUN_ACCESS_KEY_SECRET }}
  run: |
    cp .fun/template.yml template.yml
    sed -i 's#{{tag}}#${{ github.event.ref }}#' ./template.yml
    fun deploy --assume-yes

License

MIT