https://github.com/menci/deploy-certificate-to-upyun
GitHub Action to Deploy SSL certificate to Upyun CDN or OSS.
https://github.com/menci/deploy-certificate-to-upyun
Last synced: about 1 year ago
JSON representation
GitHub Action to Deploy SSL certificate to Upyun CDN or OSS.
- Host: GitHub
- URL: https://github.com/menci/deploy-certificate-to-upyun
- Owner: Menci
- Created: 2021-10-16T14:00:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T14:50:52.000Z (about 2 years ago)
- Last Synced: 2025-07-01T00:02:10.341Z (about 1 year ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action for Deploying SSL certificate to Upyun
Deploy SSL certificate to Upyun CDN or OSS.
# Usage
> If you need to issue SSL certificates automatically, you can use [my acme.sh action](https://github.com/marketplace/actions/issue-ssl-certificate).
This action will deploy your PEM-formatted SSL certificate to Upyun. Since it uses Upyun's console API, you must use a subaccount (NOT your main account since it requires 2FA) as credential.
```yaml
jobs:
deploy-to-upyun:
name: Deploy certificate to Upyun
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
# If you just commited and pushed your newly issued certificate to this repo in a previous job,
# use `ref` to make sure checking out the newest commit in this job
ref: ${{ github.ref }}
- uses: Menci/deploy-certificate-to-aliyun@beta-v2
with:
# Subaccount
subaccount-username: ${{ secrets.UPYUN_SUBACCOUNT_USERNAME }}
subaccount-password: ${{ secrets.UPYUN_SUBACCOUNT_PASSWORD }}
# Specify PEM fullchain file
fullchain-file: ${{ env.FILE_FULLCHAIN }}
# Specify PEM private key file
key-file: ${{ env.FILE_KEY }}
# Deploy to CDN or OSS
cdn-domains: |
cdn1.example.com
cdn2.example.com
oss1.example.com
oss2.example.com
# Delete ALL unused certificates after deployment
delete-unused-certificates: true
```