diff --git a/.github/workflows/.build.yaml.un~ b/.github/workflows/.build.yaml.un~ new file mode 100644 index 0000000..1592add Binary files /dev/null and b/.github/workflows/.build.yaml.un~ differ diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..2c33077 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 diff --git a/README.md b/README.md index e2a4330..772c8f7 100644 --- a/README.md +++ b/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 ` @@ -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. \ No newline at end of file +The video is now saved under `videos/`, or whatever the `outputDirectory` const points to.