Caprover Deploy refs/heads/caprover-deploy #12
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
# Simple workflow for deploying static content to GitHub Pages | |
name: Caprover Deploy | |
run-name: Caprover Deploy ${{github.ref}} | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: | |
- master | |
- development | |
- caprover-* | |
paths: | |
- .github/workflows/deploy-to-caprover.yaml | |
- Dockerfile | |
- erddap | |
workflow_dispatch: | |
jobs: | |
# Single deploy job since we're just deploying | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Caprover CLI | |
run: npm install -g caprover | |
- name: Tell ${{ secrets.CAPROVER_URL }} server to deploy ${{ github.ref_name }} on ${{ secrets.CAPROVER_APP_NAME }} | |
run: | | |
caprover deploy | |
--caproverUrl ${{ secrets.CAPROVER_URL }} | |
--appToken ${{ secrets.CAPROVER_TOKEN }} | |
--branch ${{ github.ref_name }} | |
--appName ${{ secrets.CAPROVER_APP_NAME }} |