mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 18:36:14 +03:00
36 lines
868 B
YAML
36 lines
868 B
YAML
name: Build nightly
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
push-nightly:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '18'
|
|
|
|
- name: Build Node.js cache
|
|
uses: actions/cache@v3
|
|
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
|
|
|
|
- name: Push to nightly-release
|
|
uses: JamesIves/github-pages-deploy-action@v4.4.3
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
BRANCH: nightly-release
|
|
FOLDER: ./vuetorrent
|