Skip to content
Open

DEMO #20

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@


on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: "importing all the document"
- uses: actions/setup-node@v2
with:
node-version: '16'
name: "installing the node.js with version 16"
- run: .travis/affects.sh docs/ .travis || exit 0
if: ${{ github.event_name == ('push' || 'pull_request')}} && ${{github.ref == 'master'}}
name: "Build Docs"
- run: |
cd docs/
touch .env
echo VERCEL_TOKEN =${{ secrets.VERCEL_TOKEN }} > .env
source .travis/before_install.sh
npm ci
source .travis/script.sh
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}


42 changes: 21 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
dist: bionic
sudo: required
# dist: bionic
# sudo: required

branches:
only:
- master
# branches:
# only:
# - master

notifications:
email: false
# notifications:
# email: false

jobs:
include:
# docs pull request or commit to master
- name: "Build Docs"
if: type IN (push, pull_request) AND branch = master
language: node_js
node_js:
- "node"
# jobs:
# include:
# # docs pull request or commit to master
# - name: "Build Docs"
# if: type IN (push, pull_request) AND branch = master
# language: node_js
# node_js:
# - "node"

before_install:
- .travis/affects.sh docs/ .travis || travis_terminate 0
- cd docs/
- source .travis/before_install.sh
script:
- source .travis/script.sh
# before_install:
# - .travis/affects.sh docs/ .travis || travis_terminate 0
# - cd docs/
# - source .travis/before_install.sh
# script:
# - source .travis/script.sh
3 changes: 1 addition & 2 deletions docs/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -d .vercel ]]; then
fi

CONFIG_FILE=vercel.json
PROJECT_NAME=spl-solana-com
PROJECT_NAME=solana-program-library

PRODUCTION=
if [[ -n "$CI" ]]; then
Expand All @@ -20,7 +20,6 @@ cat > "$CONFIG_FILE" <<EOF
"scope": "solana-labs"
}
EOF

[[ -n $VERCEL_TOKEN ]] || {
echo "VERCEL_TOKEN is undefined. Needed for Vercel authentication."
exit 1
Expand Down