-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated from Travis CI to GH Actions
- Added deploy workflow - Removed Travis CI configuration - Updated README.md badge
- Loading branch information
Showing
3 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Download code from repository | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# Setup Node.js | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '15' | ||
|
||
# Build webapp | ||
- name: Build webapp | ||
run: npm install && npm run build && echo "iotawebwallet.com" > ./dist/CNAME | ||
|
||
# Upload webapp | ||
- name: Upload webapp | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: dist | ||
CLEAN: true # Automatically remove deleted files from the deploy branch |
This file was deleted.
Oops, something went wrong.
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