32 lines
845 B
YAML
32 lines
845 B
YAML
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@v3
|
|
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@v3
|
|
with:
|
|
name: release-dist
|
|
path: dist/
|
|
retention-days: 1
|