Merge pull request #366 from unclekingpin/pages-ci

Pages ci
This commit is contained in:
Tim 2023-05-23 22:46:10 +02:00 committed by GitHub
commit c6ce2b96e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 22 deletions

View file

@ -1,6 +1,9 @@
name: Build
on: push
on:
push:
branches:
- '*'
jobs:
build:
@ -9,11 +12,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install NPM dependencies
run: npm install
run: npm ci
- name: Build
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v2
- name: Test
run: npm test
- name: Lint
run: npm run lint
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
name: stremio-web
path: build
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
destination_dir: ${{ github.ref_name != 'development' && github.ref_name || '' }}
allow_empty_commit: true

View file

@ -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