Created
July 14, 2020 19:52
-
-
Save acidjazz/7267b93ef08a973d8cb200a1c6d2d79d to your computer and use it in GitHub Desktop.
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
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