Skip to content

Instantly share code, notes, and snippets.

@acidjazz
Created July 14, 2020 19:52
Show Gist options
  • Save acidjazz/7267b93ef08a973d8cb200a1c6d2d79d to your computer and use it in GitHub Desktop.
Save acidjazz/7267b93ef08a973d8cb200a1c6d2d79d to your computer and use it in GitHub Desktop.
name: Deploy
on:
push:
branches: [ staging ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
-
name: Install Vapor
run: composer global require laravel/vapor-cli
- name: Deploy With vapor
run: /home/runner/.composer/vendor/bin/vapor deploy ${BRANCH} --commit="${GITHUB_SHA}" --message="${GITHUB_MESSAGE}"
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment