Skip to content

afeiship/action-deploy2cos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-deploy2cos

A composite steps for deploy frontend filesto cos.

usage

  1. set secret gh secret set -f ~/.aliyun/.env.kubebio
  2. use below workflow
name: deploy2cos workflow
on:
  push:
    branches: master

jobs:
  Release:
    name: Release
    runs-on: ubuntu-latest
    env:
      COS_YML: ${{ secrets.COS_YML }}


    if: contains(github.event.head_commit.message, '__@production__')
    steps:
      - name: All in one
        uses: afeiship/action-deploy2cos@master
        with:
          build_dist: "build"
          oss_bucket: cos://your-cos/test/

      - name: Debug
        run: |
          printenv

for multiple envs

name: moban-admin workflow for AliyunOSS
on: [push]
jobs:
  beta:
    runs-on: ubuntu-latest
    env:
      COS_YML: ${{ secrets.COS_YML }}

    if: contains(github.event.head_commit.message, '__@beta__')
    steps:
      - name: All in one for beta
        uses: afeiship/action-deploy2cos@master
        with:
          build_dist: "dist"
          oss_bucket: cos://your-cos/beta/

  production:
    runs-on: ubuntu-latest
    env:
      COS_YML: ${{ secrets.COS_YML }}

    if: contains(github.event.head_commit.message, '__@production__')
    steps:
      - name: All in one for production
        uses: afeiship/action-deploy2cos@master
        with:
          build_dist: "dist"
          oss_bucket: cos://your-cos/production/

Releases

No releases published

Packages

No packages published

Languages