-
-
Notifications
You must be signed in to change notification settings - Fork 130
49 lines (40 loc) · 1.25 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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: pwshrc/[email protected]
with:
name: 'Release'
- 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/
- 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"