deploy each branch to gh actions

This commit is contained in:
unclekingpin 2023-05-18 12:30:29 -07:00
parent 5705233705
commit 55715ae396
2 changed files with 12 additions and 21 deletions

View file

@ -9,11 +9,18 @@ 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.head_ref }}
enable_jekyll: true
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