2022-11-15 13:17:59 +03:00
|
|
|
name: Build nightly
|
2022-11-15 11:41:14 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
push-nightly:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-06-23 10:36:02 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-11-15 11:41:14 +03:00
|
|
|
- name: Setup Node.js
|
2023-06-23 10:35:36 +03:00
|
|
|
uses: actions/setup-node@v3
|
2022-11-15 11:41:14 +03:00
|
|
|
with:
|
|
|
|
node-version: '18'
|
|
|
|
- name: Build Node.js cache
|
2023-06-23 10:36:12 +03:00
|
|
|
uses: actions/cache@v3
|
2022-11-15 11:41:14 +03:00
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: ${{ runner.os }}-node-
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build VueTorrent
|
|
|
|
run: npm run build
|
2022-11-15 12:32:22 +03:00
|
|
|
- name: Push to nightly-release
|
2023-07-18 11:27:36 +03:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.4.3
|
2022-11-15 11:41:14 +03:00
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: nightly-release
|
|
|
|
FOLDER: ./vuetorrent
|