https://github.com/renbaoshuo/deploy-certificate-to-tencentcloud
https://github.com/renbaoshuo/deploy-certificate-to-tencentcloud
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/renbaoshuo/deploy-certificate-to-tencentcloud
- Owner: renbaoshuo
- Created: 2022-05-20T02:44:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T15:18:34.000Z (about 2 months ago)
- Last Synced: 2025-04-06T08:09:54.245Z (21 days ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action for Tencent Cloud CDN certificate deployment
Deploy SSL certificate to Tencent Cloud CDN.
## Usage
This action will deploy your PEM-formatted SSL certificate to Tencent Cloud CDN.
```yaml
jobs:
deploy-to-qcloud-cdn:
name: Deploy certificate to Tencent Cloud CDN
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
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: renbaoshuo/deploy-certificate-to-tencentcloud@v2
with:
# Use Access Key
secret-id: ${{ secrets.QCLOUD_SECRET_ID }}
secret-key: ${{ secrets.QCLOUD_SECRET_KEY }}# Specify PEM fullchain file
fullchain-file: ${{ env.FILE_FULLCHAIN }}
# Specify PEM private key file
key-file: ${{ env.FILE_KEY }}# Deploy to CDN
cdn-domains: |
cdn1.example.com
cdn2.example.com
```## Permissions
Please make sure the Tencent Cloud account you use has the following permissions:
- QcloudCDNFullAccess
- QcloudSSLFullAccess