diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index c8f5c5db..8303018f 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -14,24 +14,28 @@ jobs:
permissions:
contents: write
pull-requests: write
- actions: write
-
steps:
- name: Run release please
- uses: google-github-actions/release-please-action@v4
+ uses: googleapis/release-please-action@v4
id: release
with:
- token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
build-release:
name: Build VueTorrent
runs-on: ubuntu-latest
- permissions:
- contents: write
- pull-requests: write
- actions: write
+ strategy:
+ matrix:
+ npm-step: [ 'build', 'build-demo' ]
+ include:
+ - npm-step: build
+ artifact-name: vuetorrent-build
+ artifact-path: ./vuetorrent
+ - npm-step: build-demo
+ artifact-name: vuetorrent-demo
+ artifact-path: ./vuetorrent-demo
+
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -45,7 +49,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.npm
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}"
restore-keys: ${{ runner.os }}-node-
- name: Install dependencies
@@ -63,13 +67,13 @@ jobs:
tolgee_secret: ${{ secrets.TOLGEE_TOKEN }}
- name: Build VueTorrent
- run: npm run build
+ run: npm run ${{ matrix.npm-step }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
- name: vuetorrent-build
- path: ./vuetorrent
+ name: ${{ matrix.artifact-name }}
+ path: ${{ matrix.artifact-path }}
retention-days: 1
push-nightly:
@@ -94,9 +98,29 @@ jobs:
branch: nightly-release
folder: ./vuetorrent
+ push-demo:
+ name: Push to demo repo
+ runs-on: ubuntu-latest
+ needs: build-release
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - uses: actions/download-artifact@v4
+ with:
+ name: vuetorrent-demo
+ path: ./vuetorrent-demo
+
+ - name: Push to demo repo
+ uses: JamesIves/github-pages-deploy-action@v4.6.0
+ with:
+ folder: './vuetorrent-demo'
+ repository-name: 'VueTorrent/demo'
+ token: ${{ secrets.GH_PAT }}
+
upload-release:
name: Upload release to GitHub
- needs: [setup-release, build-release]
+ needs: [ setup-release, build-release ]
if: needs.setup-release.outputs.release_created
runs-on: ubuntu-latest
steps:
@@ -120,7 +144,7 @@ jobs:
push-release:
name: Push to latest branch
- needs: [setup-release, build-release]
+ needs: [ setup-release, build-release ]
if: needs.setup-release.outputs.release_created
runs-on: ubuntu-latest
steps:
@@ -135,6 +159,5 @@ jobs:
- name: Push to latest-release
uses: JamesIves/github-pages-deploy-action@v4.6.0
with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BRANCH: latest-release
- FOLDER: ./vuetorrent
+ branch: latest-release
+ folder: ./vuetorrent
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index fd2482a1..ea848c98 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -25,8 +25,8 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.npm
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- restore-keys: ${{ runner.os }}-node-
+ key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}"
+ restore-keys: "${{ runner.os }}-node-"
- name: Install dependencies
run: npm ci
diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml
index c45286ca..31d3d460 100644
--- a/.github/workflows/translations.yml
+++ b/.github/workflows/translations.yml
@@ -26,8 +26,8 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.npm
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- restore-keys: ${{ runner.os }}-node
+ key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}"
+ restore-keys: "${{ runner.os }}-node"
- name: Install dependencies
run: npm ci
diff --git a/.gitignore b/.gitignore
index 78223223..7390c413 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,6 +27,7 @@ coverage
# Custom
vuetorrent/**
+vuetorrent-demo/**
docker/**
coverage/
config/
diff --git a/README.md b/README.md
index 3b2e9bad..dc187459 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,15 @@ The sleekest looking WebUI for qBittorrent made with Vue.js!