Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-designer committed Jan 24, 2024
2 parents ed7ae6b + 76d8952 commit cdb6f4f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ftp-to-cdn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: push
name: 🚀 Upload assets on bunny cnd assets-storage - PixInvent
jobs:
web-deploy:
name: 🎉 Upload
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3

- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: uk.storage.bunnycdn.com
username: assets-storage
password: ${{ secrets.ftp_password }}
server-dir: pi-assets/
# exclude: .git*
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@ Table of contents:
| | |
## Usage

To use assets over cdn:
```
https://ts-assets.b-cdn.net/ts-assets/path/to/file.extension
```

Usage examples:

**Logo**

```
https://cdn.jsdelivr.net/gh/pixinvent/pi-assets/vuexy/admin-template/logo/logo.png
```

**Banner**

```
https://cdn.jsdelivr.net/gh/pixinvent/pi-assets/vuexy/admin-template/banner/banner.png
```

**Landing-page**

```
https://cdn.jsdelivr.net/gh/pixinvent/pi-assets/vuexy/landing-page/app-academy.png
```

<details>
<summary>jsdelivr (Deprecated)</summary>
To use assets over cdn:
```
https://cdn.jsdelivr.net/gh/<owner>/<repo>/path/to/file.extension
Expand All @@ -52,3 +79,4 @@ https://cdn.jsdelivr.net/gh/pixinvent/pi-assets/vuexy/admin-template/banner/bann
```
https://cdn.jsdelivr.net/gh/pixinvent/pi-assets/vuexy/landing-page/app-academy.png
```
</details>

0 comments on commit cdb6f4f

Please sign in to comment.