diff --git a/.github/workflows/bower_publish.yml b/.github/workflows/bower_publish.yml new file mode 100644 index 000000000..5a63b965a --- /dev/null +++ b/.github/workflows/bower_publish.yml @@ -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 github-actions@github.com + git add . + git commit -m $TAG + git tag -a $TAG -m $TAG + git push origin master --tags diff --git a/.github/workflows/gh_pages.yaml b/.github/workflows/gh_pages.yaml new file mode 100644 index 000000000..e008c60cf --- /dev/null +++ b/.github/workflows/gh_pages.yaml @@ -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 github-actions@github.com + git add . + git commit -m $TAG + git push origin gh-pages