forked from Phlow/feeling-responsive
-
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.
Showing
154 changed files
with
34 additions
and
42,448 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 |
---|---|---|
@@ -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 }} | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
_site/ | ||
.bundle | ||
.DS_Store | ||
.jekyll-cache | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.