Skip to content

Commit 7c59f76

Browse files
committed
πŸ—οΈ Update structure
1 parent 36de709 commit 7c59f76

24 files changed

Lines changed: 106 additions & 623 deletions
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
name: .NET build and test
2-
on: push
3-
jobs:
4-
continuous-integration:
5-
name: Build and test
6-
runs-on: ${{ matrix.os }}
7-
strategy:
8-
matrix:
9-
os: [ubuntu-latest, windows-latest]
10-
permissions:
11-
contents: read
12-
issues: read
13-
checks: write
14-
pull-requests: write
15-
steps:
16-
- name: .NET CI
17-
uses: brianary/dotnet-ci@v1
18-
with:
19-
test-target: test
1+
name: 🩺 Continuous integration ⏩
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: ['scripts/**','src/**','test/**']
7+
pull_request:
8+
types: [opened, reopened]
9+
branches: [main]
10+
paths: ['scripts/**','src/**','test/**']
11+
workflow_dispatch: {}
12+
13+
permissions:
14+
contents: read
15+
security-events: write
16+
actions: read
17+
18+
jobs:
19+
call-workflow:
20+
uses: brianary/actions/.github/workflows/continuous-integration.yml@main

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
name: Publish module to PowerShell Gallery
2-
on:
3-
workflow_run:
4-
workflows: [".NET build and test"]
5-
types: [completed]
6-
branches: [main]
7-
jobs:
8-
publish:
9-
name: Publish to PowerShell Gallery
10-
runs-on: windows-latest
11-
steps:
12-
- name: Publish module
13-
uses: brianary/powershell-gallery-publish@v1
14-
with:
15-
gallery-key: ${{ secrets.gallerykey }}
1+
name: πŸ“¦ Publish module to PowerShell Gallery ⏩
2+
3+
on:
4+
push:
5+
tags:
6+
- v[0-9]*
7+
8+
permissions:
9+
contents: write
10+
security-events: write
11+
actions: read
12+
13+
jobs:
14+
call-workflow:
15+
uses: brianary/actions/.github/workflows/powershell-gallery-publish.yml@main
16+
with:
17+
version: ${{ github.ref }}
18+
secrets:
19+
gallerykey: ${{ secrets.GALLERYKEY }}
20+
gh_token: ${{ secrets.GITHUB_TOKEN }}
21+

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.*/
22
!.github/
3+
!.vscode/
34
!.paket/
45
bin/
56
obj/

β€Ž.vscode/settings.jsonβ€Ž

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"markdownlint.config": {
3+
"heading-style": {
4+
"style": "setext_with_atx"
5+
},
6+
"no-inline-html": false
7+
},
8+
"pester.autoRunOnSave": false,
9+
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
10+
"powershell.codeFormatting.preset": "Allman",
11+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
12+
"powershell.codeFormatting.useCorrectCasing": true,
13+
"prettier.disableLanguages": [
14+
"markdown"
15+
],
16+
"[markdown]": {
17+
"editor.defaultFormatter": "darkriszty.markdown-table-prettify"
18+
}
19+
}

β€ŽREADME.mdβ€Ž

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
SelectXmlExtensions
22
===================
33

4-
<!-- To publish to PowerShell Gallery, commit an update to the .psd1 file -->
5-
<img src="SelectXmlExtensions.svg" alt="SelectXmlExtensions icon" align="right" />
4+
<img src="images/SelectXmlExtensions.svg" alt="SelectXmlExtensions icon" align="right" />
65

76
[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/SelectXmlExtensions)](https://www.powershellgallery.com/packages/SelectXmlExtensions/)
87
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/SelectXmlExtensions)](https://www.powershellgallery.com/packages/SelectXmlExtensions/)
9-
[![Actions Status](https://github.com/brianary/SelectXmlExtensions/workflows/.NET%20Core/badge.svg)](https://github.com/brianary/SelectXmlExtensions/actions)
10-
8+
[![🩺 Continuous integration ⏩](https://github.com/brianary/SelectXmlExtensions/actions/workflows/continuous.yml/badge.svg)](https://github.com/brianary/SelectXmlExtensions/actions/workflows/continuous.yml)
119
Cmdlets that use the output of Select-Xml to modify the source XML document.
1210

1311
To install: `Install-Module SelectXmlExtensions`
1412

15-
![example usage of SelectXmlExtensions](SelectXmlExtensions.gif)
13+
![example usage of SelectXmlExtensions](images/SelectXmlExtensions.gif)
1614

1715
Cmdlets
1816
-------
1917

2018
Documentation generated by [platyPS](https://github.com/PowerShell/platyPS) (`.\doc.cmd`).
2119

22-
- [Add-Xml](docs/Add-Xml.md) &mdash;
20+
- [Add-Xml](https://github.com/brianary/SelectXmlExtensions/wiki/Add-Xml) &mdash;
2321
Insert XML into an XML document relative to a node found by Select-Xml.
24-
- [Remove-Xml](docs/Remove-Xml.md) &mdash;
22+
- [Remove-Xml](https://github.com/brianary/SelectXmlExtensions/wiki/Remove-Xml) &mdash;
2523
Removes a node found by Select-Xml from its XML document.
26-
- [Get-XmlValue](docs/Get-XmlValue.md) &mdash;
24+
- [Get-XmlValue](https://github.com/brianary/SelectXmlExtensions/wiki/Get-XmlValue) &mdash;
2725
Returns the value of an XML node found by Select-Xml.
28-
- [Set-XmlValue](docs/Set-XmlValue.md) &mdash;
26+
- [Set-XmlValue](https://github.com/brianary/SelectXmlExtensions/wiki/Set-XmlValue) &mdash;
2927
Sets the value of a node found by Select-Xml.
3028

3129
Tests

β€ŽSelectXmlExtensions.slnβ€Ž

Lines changed: 0 additions & 39 deletions
This file was deleted.

β€ŽSelectXmlExtensions.slnxβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Solution>
2+
<Folder Name="/src/">
3+
<Project Path="src/SelectXmlExtensions.fsproj" />
4+
</Folder>
5+
</Solution>

β€Ždoc.cmdβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Ždocs/Add-Xml.mdβ€Ž

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
Β (0)