-
Notifications
You must be signed in to change notification settings - Fork 399
41 lines (37 loc) · 998 Bytes
/
nightlyrelease.yml
File metadata and controls
41 lines (37 loc) · 998 Bytes
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
name: Nightly Release to PowerShell Gallery
on:
workflow_dispatch:
schedule:
- cron: '30 2 * * *'
permissions: read-all
jobs:
build:
runs-on: windows-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
- uses: actions/checkout@v4
with:
ref: dev
token: ${{ secrets.PAT }}
- name: Build and Publish Module
env:
POWERSHELLGALLERY_API_KEY: ${{ secrets.POWERSHELLGALLERY_API_KEY }}
shell: pwsh
run: |
./build/Build-Nightly.ps1
- name: Set variables
shell: pwsh
run: |
$version = Get-Content version.txt -raw
"BUILDVERSION=$version" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
message: 'Nightly publish to PowerShell Gallery'
tag: '${{env.BUILDVERSION}}-nightly --force'
push: true