Merge pull request #1614 from AmbireTech/update/common #62
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: Build & deploy 🔥 Ambire Wallet 🔥 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- name: Add SSH key to chekout a private repo | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Checkout code 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install Node.js ⚙️ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install NPM packages ♾️🕳️ | |
run: npm ci | |
- name: Build project 🛠️ | |
run: npm run build | |
- name: Deploy 🚀🌕 | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build | |
cname: wallet.ambire.com | |
clean-exclude: | | |
pr-preview | |
relayerless | |
sdk-login | |
relayer-v2 | |