Changes ci cd workflow to separate files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Deploy
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
artifact_name:
|
||||
required: true
|
||||
type: string
|
||||
environment:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download build artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact_name }}
|
||||
path: dist
|
||||
|
||||
# Placeholder deploy step: voor nu wordt dist/ opnieuw gepubliceerd
|
||||
# als duidelijk benoemde, downloadbare artifact. Zodra de hosting-/
|
||||
# upload-methode (FTP/SFTP/anders) vastligt, vervang deze stap door
|
||||
# de daadwerkelijke upload en kan deze opmerking weg.
|
||||
- name: Package release artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-dist
|
||||
path: dist/
|
||||
retention-days: 1
|
||||
Reference in New Issue
Block a user