Deploy Ionic application in GitHub using Travis-CI

$ ionic start ionic-travis-gh-pages blank
$ cd ionic-travis-gh-pages
$ git remote add origin https://github.com/hamzahamidi/ionic-travis-gh-pages.git
$ git push -u origin master
language: node_js
node_js:
— “8.9.4”
branches:
only:
— master
before_script:
— npm install -g ionic
— npm ci
script:
— ionic build --prod -- --base-href ./
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
local_dir: www
$ git add .travis.yml
$ git commit -m "ci: Add Travis-CI"
$ git push origin master

links:

👉 Don’t forget to clap if you like the post

--

--

--

Web/Mobile Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Find A Job As A Computer Science Student

Developers: Don’t Just Be an Employee, Be an Intrapreneur

Person coding on computer

Download In `PDF Documenting Software Architecture

Turborepo: The Next Big Thing in Build Systems

11 basic Git commands

Git and GitHub Tutorial — Aryan Irani

QuickSort Algorithm

What is Alnair?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hamza HAMIDI

Hamza HAMIDI

Web/Mobile Developer.

More from Medium

Adding external library in draw.io

Configure private NPM package registry using Yarn 2 and Gitlab CI/CD

Photo by <a href=”https://unsplash.com/@markusspiske?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Markus Spiske</a> on <a href=”https://unsplash.com/s/photos/coding?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>

Automatic “Alt+Tab” input with AutoHotKey

Best Practices of REST API endpoint design