Skip to content

Continous Deployment #2

Continous Deployment

Continous Deployment #2

Workflow file for this run

name: Continous Deployment
on:
workflow_run:
workflows: ["Continous Integration"]
branches: ["main", "master", "feature/package-artifact"]
types:
- completed
workflow_dispatch:
defaults:
run:
shell: pwsh
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4 # TODO: this file is not available, as it's an artefact from another pipeline
# https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories
with:
name: Release
path: ./Release/
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- uses: actions/cache@v3
id: cacher
with:
path: "~/.local/share/powershell/Modules"
key: ${{ runner.os }}-PSModules
- name: Setup
run: |
./Tools/setup.ps1
Invoke-Build -Task ShowInfo
- name: Deploy
env:
NUGET_API_KEY: ${{ secrets.shhh }} # TODO: this is not the correct secret yet.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Invoke-Build -Task Deploy
Write-Warning "SKIPPING: Invoke-Build -Task Deploy"