Merge pull request #215 from TChukwuleta/odoo #181
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout and setup | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# Install and build | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: | | |
npm run init | |
npm run prod | |
env: | |
CI: true | |
TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }} | |
# Deploy, limited to the main branch | |
- name: Deploy | |
if: success() && github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./dist | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
cname: btcpayserver.org | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' |