Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hujiulong/action-qiniu-upload
Github Action for Uploading Files to Qiniu.com
https://github.com/hujiulong/action-qiniu-upload
Last synced: about 1 month ago
JSON representation
Github Action for Uploading Files to Qiniu.com
- Host: GitHub
- URL: https://github.com/hujiulong/action-qiniu-upload
- Owner: hujiulong
- License: mit
- Created: 2019-12-25T03:43:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T17:00:04.000Z (over 3 years ago)
- Last Synced: 2024-07-11T04:35:40.947Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1020 KB
- Stars: 9
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Action for Uploading Files to Qiniu
This is a action for uploading files to [Qiniu](https://qiniu.com).
This action uses the [qiniu nodejs sdk](https://github.com/qiniu/nodejs-sdk) to upload a directory (either from your repository or generated during your workflow) to a cloud bucket.
## Usage
```yaml
name: Upload Websiteon:
push:
branches:
- masterjobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: hujiulong/action-qiniu-upload@master
with:
# Your qiniu access key, required.
access_key: ${{ secrets.QINIU_ACCESS_KEY }}# Your qiniu secret key, required.
secret_key: ${{ secrets.QINIU_SECRET_KEY }}# Bucket name, required.
bucket: ${{ secrets.QINIU_BUCKET }}# The local directory (or file) you want to upload to bucket.
# Default: './'
source_dir: 'dist'# The directory inside of the bucket you want to upload to, namely key prefix prepended to dest file key.
# Default: '/'
dest_dir: '/static'# Whether to ignore source maps.
# Default: true
ignore_source_map: true
```## License
[MIT license](LICENSE).