Merge pull request #886 from repaygithub/dependabot/npm_and_yarn/foll… #117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Master Pipeline | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Decrypt secrets | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
run: | | |
openssl aes-256-cbc -in .github/workflows/secrets/cactus_auth.enc -out .github/workflows/secrets/cactus_auth -pass pass:$SSH_PRIVATE_KEY -d -md sha1 | |
- name: Setup SSH agent | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
run: | | |
mkdir -p ~/.ssh | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | |
chmod 0600 .github/workflows/secrets/cactus_auth | |
ssh-add .github/workflows/secrets/cactus_auth | |
- name: Git Authentication | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
run: git remote set-url origin git@github.com:repaygithub/cactus.git | |
- name: Install Packages | |
run: yarn install --immutable | |
- name: Build Packages | |
run: yarn build | |
- name: Build Documentation Site | |
run: yarn docs build | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
- name: Deploy with gh-pages | |
run: yarn gh-pages -d ./website/public -u "repayci <repayci@repay.com>" | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
- name: Cleanup | |
if: always() | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
run: | | |
ssh-add -D | |
rm -Rf * |