Skip to content

Commit 24fcc43

Browse files
authored
Create build-extension.yaml
1 parent c951720 commit 24fcc43

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Extension
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
submit:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: pnpm/action-setup@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: 'pnpm'
19+
20+
- name: Install dependencies
21+
run: pnpm install
22+
23+
- name: Zip extensions
24+
run: FRONTEND_URL=https://platform.postiz.com pnpm run build:extension
25+
26+
- name: Upload to Nextcloud
27+
env:
28+
NEXTCLOUD_URL: ${{ secrets.NEXTCLOUD_URL }}
29+
NEXTCLOUD_USERNAME: ${{ secrets.NEXTCLOUD_USERNAME }}
30+
NEXTCLOUD_PASSWORD: ${{ secrets.NEXTCLOUD_PASSWORD }}
31+
run: |
32+
curl -T apps/extension/extension.zip \
33+
-u "$NEXTCLOUD_USERNAME:$NEXTCLOUD_PASSWORD" \
34+
"$NEXTCLOUD_URL/extension.zip"

0 commit comments

Comments
 (0)