Skip to content

Commit

Permalink
fix: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Salzmann committed Aug 25, 2024
1 parent 440647b commit 65a3471
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/deploy-now.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# 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
permissions:
contents: 'read'
id-token: 'write'
pages: 'write'
actions: 'write'
checks: 'write'
deployments: 'write'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}







Expand Down



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@v4
with:
submodules: 'recursive'
- name: Setup Node
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/setup-node@v3
with:
node-version: v18.13.0
- name: Build Node assets
# if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
# env:
# CI: true
# SITE_URL: ${{ steps.project.outputs.site-url }}
run: |
npm ci
npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload build directory content
path: 'docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Deploy to Github-pages
# # if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: docs
# - 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

0 comments on commit 65a3471

Please sign in to comment.