Skip to content

Commit

Permalink
CI for publishing develop application (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj authored Apr 3, 2024
1 parent 32fbf22 commit a379e60
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 31 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/develop-publish-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Action WebRTC JS SDK

on:
push:
branches:
- develop
jobs:
publish-ubuntu-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Run release
run: npm run release
- name: Deploy to Github pages
uses: JamesIves/[email protected]
with:
folder: dist
branch: gh-pages
target-folder: develop
clean: true
31 changes: 31 additions & 0 deletions .github/workflows/master-publish-gh-pages-and-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy and Publish Action WebRTC JS SDK

on:
push:
branches:
- master
jobs:
publish-ubuntu-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Run release
run: npm run release
- name: Deploy to Github pages
uses: JamesIves/[email protected]
with:
folder: dist
branch: gh-pages
clean: true
clean-exclude: develop/
- name: Deploy to npm packages
uses: JS-DevTools/npm-publish@v1
with:
token: '${{ secrets.NPM_TOKEN }}'
31 changes: 0 additions & 31 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit a379e60

Please sign in to comment.