Update workflow retrieve-project-info-action to v1.5.0 #356
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
# To better understand this file read this: | |
# https://docs.ionos.space/docs/github-actions-customization/ | |
name: Deploy Now | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
deploy-now: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch project data | |
uses: ionos-deploy-now/[email protected] | |
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: Setup Node | |
if: ${{ steps.project.outputs.deployment-enabled == 'true' }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: v14.x | |
- name: Build Node assets | |
env: | |
CI: true | |
SHOW_BLOG: true | |
SITE_URL: ${{ steps.project.outputs.site-url }} | |
URL_GITHUB: https://github.com/ionos-deploy-now/documentation/ | |
URL_WEB: https://ionos.space | |
run: | | |
npm ci | |
npm run build | |
- name: Deploy to IONOS | |
if: ${{ steps.project.outputs.deployment-enabled == 'true' }} | |
uses: ionos-deploy-now/deploy-to-ionos-action@v1 | |
with: | |
project: ${{ secrets.IONOS_PROJECT_ID }} | |
branch-id: ${{ steps.project.outputs.branch-id }} | |
service-host: api-eu.ionos.space | |
api-key: ${{ secrets.IONOS_API_KEY }} | |
dist-folder: dist | |
runtime-placeholder-files: ${{ steps.template.outputs.runtime-placeholder-files }} |