Files
BitBox/.github/workflows/deploy-now.yaml
2021-12-24 14:11:36 +00:00

35 lines
1.1 KiB
YAML

name: Deploy Now
on:
- push
- workflow_dispatch
jobs:
deploy-now:
runs-on: ubuntu-latest
steps:
- name: Fetch project data
uses: ionos-deploy-now/retrieve-project-info-action@v1
id: project
with:
api-key: ${{ secrets.IONOS_API_KEY }}
project: ${{ secrets.IONOS_PROJECT_ID }}
service-host: api-eu.ionos.space
- name: checkout
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Deploy build
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: ionos-deploy-now/deploy-to-ionos-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
bootstrap-deploy: ${{ steps.project.outputs.bootstrap-deploy }}
branch-id: ${{ steps.project.outputs.branch-id }}
dist-folder: ./
project: ${{ secrets.IONOS_PROJECT_ID }}
remote-host: ${{ steps.project.outputs.remote-host }}
service-host: api-eu.ionos.space
storage-quota: ${{ steps.project.outputs.storage-quota }}