Skip to content

Commit

Permalink
Add Actions to publish docs and a bower package. (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Nov 16, 2021
1 parent d924690 commit 71213a7
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/bower_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Bower Publish
on:
release:
types: [published]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Checkout Bower
uses: actions/checkout@v2
with:
repository: stellar/bower-js-stellar-sdk
path: bower

- name: Install Node (14.x)
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Install and build package
run: |
yarn install
yarn build
cp dist/* bower/
- name: Publish to bower
run:
TAG=`git describe --tags`
cd bower/
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m $TAG
git tag -a $TAG -m $TAG
git push origin master --tags
44 changes: 44 additions & 0 deletions .github/workflows/gh_pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Github Pages
on:
release:
types: [published]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Node (14.x)
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Install Dependencies
run: yarn install

- name: Build
run: gulp

- name: Checkout GH pages
uses: actions/checkout@v2
with:
repository: stellar/js-stellar-sdk
ref: gh-pages
path: jsdoc

- name: Generate JS docs
run: yarn docs

- name: Publish JS docs
run: |
TAG=`git describe --tags`
cd jsdoc
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m $TAG
git push origin gh-pages

0 comments on commit 71213a7

Please sign in to comment.