mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
commit
c6ce2b96e4
2 changed files with 15 additions and 22 deletions
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
|
|
@ -1,6 +1,9 @@
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -9,11 +12,17 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install NPM dependencies
|
- name: Install NPM dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Upload build artifact
|
- name: Test
|
||||||
uses: actions/upload-artifact@v2
|
run: npm test
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
name: stremio-web
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
path: build
|
publish_dir: ./build
|
||||||
|
destination_dir: ${{ github.ref_name != 'development' && github.ref_name || '' }}
|
||||||
|
allow_empty_commit: true
|
||||||
|
|
|
||||||
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
|
|
@ -1,16 +0,0 @@
|
||||||
name: Test
|
|
||||||
|
|
||||||
on: push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install NPM dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: Test
|
|
||||||
run: npm test
|
|
||||||
- name: Lint
|
|
||||||
run: npm run lint
|
|
||||||
Loading…
Reference in a new issue