-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (37 loc) · 943 Bytes
/
ci.yml
File metadata and controls
40 lines (37 loc) · 943 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
name: Powershell CI
on:
push:
branches: [ "main" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 0 * * 0"
jobs:
lint:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint sources
shell: pwsh
run: ./Invoke-Linter.ps1 -exitCodeOnError
if: always()
- name: Check formatting
id: format
shell: pwsh
run: ./Invoke-Formatter.ps1 -exitCodeOnFormat
if: always()
- name: Formatting changes
run: git diff
if: always() && steps.format.outcome != 'success'
publish:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Push release
shell: pwsh
run: ./Publish-WebKitDev.ps1
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}