-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from OmniFlix/og_updates_cheq
cheqd og tags updates, deploy yml file.
- Loading branch information
Showing
12 changed files
with
164 additions
and
107 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,42 @@ | ||
name: deploy | ||
on: | ||
push: | ||
branches: [ "cheq" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
DEPLOY_DIR: /var/www/insync-cheqd | ||
|
||
|
||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build-and-deploy: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: login to remote instance and build app | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.INSYNC_DEV_SSH_SERVER }} | ||
username: ${{ secrets.INSYNC_DEV_SSH_USER }} | ||
key: ${{ secrets.INSYNC_DEV_SSH_KEY }} | ||
port: ${{ secrets.PORT }} | ||
envs: GITHUB_REPOSITORY,DEPLOY_DIR | ||
script: | | ||
[ -d "$HOME/$GITHUB_REPOSITORY" ] && rm -rf "$HOME/$GITHUB_REPOSITORY" | ||
mkdir -p "$HOME/$GITHUB_REPOSITORY" | ||
git clone https://github.com/$GITHUB_REPOSITORY "$HOME/$GITHUB_REPOSITORY" | ||
cd "$HOME/$GITHUB_REPOSITORY" | ||
git checkout cheq && | ||
git pull origin cheq && | ||
yarn && | ||
yarn build && | ||
sudo rm -rf "${DEPLOY_DIR}" && | ||
sudo mkdir -p "${DEPLOY_DIR}" && | ||
sudo mv ./build/ "${DEPLOY_DIR}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
Oops, something went wrong.