forked from jamestoyer/chocolatey-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (52 loc) · 1.53 KB
/
publish.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Publish
on:
push:
branches:
- develop
paths-ignore:
- .github/**
workflow_dispatch:
jobs:
build-terraform:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Choco pack
uses: crazy-max/[email protected]
with:
args: pack .\terraform\terraform.nuspec
- name: Choco install
uses: crazy-max/[email protected]
with:
args: install -source . -force terraform
- name: Terraform Version
run: terraform -version
- name: Save Choco package
uses: actions/upload-artifact@v4
with:
name: terraform
path: "${{ github.workspace }}/*.nupkg"
publish-terraform:
runs-on: windows-latest
needs: build-terraform
steps:
- uses: actions/checkout@v4
- name: Restore Choco package
uses: actions/download-artifact@v4
with:
name: terraform
path: ${{ github.workspace }}
- name: Choco install
uses: crazy-max/[email protected]
with:
args: install -source . -force terraform
- name: Terraform Version
run: terraform -version
- name: Add Choco API Key
uses: crazy-max/[email protected]
with:
args: apikey --key ${{secrets.CHOCO_API_KEY}} --source https://push.chocolatey.org/
- name: Publish (noop)
uses: crazy-max/[email protected]
with:
args: push --source https://push.chocolatey.org/