Skip to content

Commit

Permalink
Merge pull request #75 from gplssm/fix/#73
Browse files Browse the repository at this point in the history
Fix/#73
  • Loading branch information
gplssm authored Jun 12, 2020
2 parents 6cb3073 + e5684f2 commit 460247d
Show file tree
Hide file tree
Showing 154 changed files with 34 additions and 42,448 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Deploy staging
# name: Deploy staging

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- dev
- master
# # Controls when the action will run. Triggers the workflow on push or pull request
# # events but only for the master branch
# on:
# push:
# branches:
# - dev
# - master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Set staging as target if branch is dev
run: echo "::set-env name=SERVER_TARGET::staging"
if: steps.extract_branch.outputs.branch == 'dev'
- name: Set production as target if branch is master
run: echo "::set-env name=SERVER_TARGET::production"
if: steps.extract_branch.outputs.branch == 'master'
- uses: actions/checkout@v2
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr
path: _site/
remote_path: /services/egon/${{ env.SERVER_TARGET }}/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}
# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Extract branch name
# shell: bash
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# id: extract_branch
# - name: Set staging as target if branch is dev
# run: echo "::set-env name=SERVER_TARGET::staging"
# if: steps.extract_branch.outputs.branch == 'dev'
# - name: Set production as target if branch is master
# run: echo "::set-env name=SERVER_TARGET::production"
# if: steps.extract_branch.outputs.branch == 'master'
# - uses: actions/checkout@v2
# - name: rsync deployments
# uses: burnett01/[email protected]
# with:
# switches: -avzr
# path: _site/
# remote_path: /services/egon/${{ env.SERVER_TARGET }}/
# remote_host: ${{ secrets.DEPLOY_HOST }}
# remote_port: ${{ secrets.DEPLOY_PORT }}
# remote_user: ${{ secrets.DEPLOY_USER }}
# remote_key: ${{ secrets.DEPLOY_KEY }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
_site/
.bundle
.DS_Store
.jekyll-cache
Expand Down
284 changes: 0 additions & 284 deletions _site/404.html

This file was deleted.

34 changes: 0 additions & 34 deletions _site/DEPLOY

This file was deleted.

3 changes: 0 additions & 3 deletions _site/assets/css/atom.css

This file was deleted.

Loading

0 comments on commit 460247d

Please sign in to comment.