Added GitHub Action
This commit is contained in:
commit
db29c77c6b
3 changed files with 37 additions and 2 deletions
BIN
.github/workflows/.build.yaml.un~
vendored
Normal file
BIN
.github/workflows/.build.yaml.un~
vendored
Normal file
Binary file not shown.
28
.github/workflows/build.yaml
vendored
Normal file
28
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Node CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [8.x, 10.x, 12.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: npm install, build, and test
|
||||
run: |
|
||||
npm install
|
||||
tsc
|
||||
env:
|
||||
CI: true
|
11
README.md
11
README.md
|
@ -10,7 +10,10 @@ It's slow (e.g. a 60-min video takes 20-30 minutes to download). Not much i can
|
|||
|
||||
## NEW `dev` BRANCH!
|
||||
|
||||
This is now a TypeScript project if you checkout the `dev` branch. Use the `master` branch for the older vanilla JavaScript version.
|
||||
This is now a TypeScript project if you checkout the `dev` branch.
|
||||
All new development happens on `dev` branch.
|
||||
|
||||
Use the `master` branch for the older vanilla JavaScript version.
|
||||
|
||||
## DISCLAIMER
|
||||
|
||||
|
@ -27,7 +30,11 @@ Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) ap
|
|||
|
||||
## USAGE
|
||||
|
||||
<<<<<<< HEAD
|
||||
* Edit `destreamer.ts` and replace the username const with your own, you may still need to enter your password or go through 2FA if you don't have the STS cookie saved in Chrome. If you do (i.e. you usually log in to Microsoft Stream with Chrome), then you may try turning `headless: false` to `true` for a truly headless experience)
|
||||
=======
|
||||
* Edit `destreamer.ts` (`.js` if using the vanilla JS master branch) and replace the username const with your own, you may still need to enter your password or go through 2FA if you don't have the STS cookie saved in Chrome. If you do (i.e. you usually log in to Microsoft Stream with Chrome), then you may try turning `headless: false` to `true` for a truly headless experience)
|
||||
>>>>>>> 29d81b72100b508b7b6429fc05a30c8b6e2f0f1d
|
||||
* `npm install` to restore packages
|
||||
* `npm start <URL of the video>`
|
||||
|
||||
|
@ -62,4 +69,4 @@ video:186494kB audio:5380kB subtitle:0kB other streams:0kB global headers:0kB mu
|
|||
[download] Download completed
|
||||
```
|
||||
|
||||
The video is now saved under `videos/`, or whatever the `outputDirectory` const points to.
|
||||
The video is now saved under `videos/`, or whatever the `outputDirectory` const points to.
|
||||
|
|
Loading…
Reference in a new issue