Merge pull request #593 from keerifox/patch-6 #453
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: GitHub Pages | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
- name: Setup NodeJS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install APT dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential git -y | |
sudo apt-get install libudev-dev -y | |
sudo apt-get install libusb-1.0-0-dev -y | |
- name: Install and Build | |
run: | | |
npm install | |
npm run wallet:build | |
- name: Deploy to gh-pages | |
uses: JamesIves/github-pages-deploy-action@4.0.0 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. |