This action installs and configures AliYun Fun command line tool for use in your GitHub Action steps.
steps:
- uses: actions/checkout@v1
- uses: hughcube/aliyun-fun-action@1.0.0
- 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
MIT