Skip to content

Commit

Permalink
docs: add multiple usage
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Aug 16, 2023
1 parent 304d2dc commit 8dfec61
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,37 @@ jobs:
- name: Debug
run: |
printenv
```

## for multiple envs

```yml
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/
```

0 comments on commit 8dfec61

Please sign in to comment.