mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
Organised gh action
This commit is contained in:
parent
399c3505db
commit
41ea88d048
2 changed files with 44 additions and 2 deletions
42
.github/workflows/deploybackup.yml
vendored
Normal file
42
.github/workflows/deploybackup.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Upload to B-Backup (Manual)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: get pnpm
|
||||
run: npm install -g pnpm
|
||||
|
||||
- name: double check xD
|
||||
run: pnpm --version
|
||||
|
||||
- name: get dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: buld
|
||||
run: pnpm run build
|
||||
|
||||
- name: Deploy to BunnyCDN
|
||||
uses: ayeressian/bunnycdn-storage-deploy@v2.2.4
|
||||
with:
|
||||
source: "dist"
|
||||
destination: ""
|
||||
storageZoneName: "${{ secrets.STORAGE_NAME_BACKUP }}"
|
||||
storagePassword: "${{ secrets.STORAGE_PASSWORD_BACKUP }}"
|
||||
upload: "true"
|
||||
remove: "false"
|
||||
purgePullZone: "false"
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
name: Upload to Bunny
|
||||
name: Upload to B-Main
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
Loading…
Add table
Add a link
Reference in a new issue