Skip to content

Commit 79a1558

Browse files
committed
πŸ—οΈ Modernize structure
1 parent b521d05 commit 79a1558

21 files changed

Lines changed: 104 additions & 361 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
!.template.config/
45
bin/
56
obj/

β€Ž.template.config/template.jsonβ€Ž

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

β€Ž.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: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
SelectHtml
22
================
33

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

76
<!-- Optional badges: -->
87
[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/SelectHtml)](https://www.powershellgallery.com/packages/SelectHtml/)
98
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/SelectHtml)](https://www.powershellgallery.com/packages/SelectHtml/)
10-
[![Actions Status](https://github.com/brianary/SelectHtml/workflows/.NET%20Core/badge.svg)](https://github.com/brianary/SelectHtml/actions)
11-
9+
[![🩺 Continuous integration ⏩](https://github.com/brianary/SelectHtml/actions/workflows/continuous.yml/badge.svg)](https://github.com/brianary/SelectHtml/actions/workflows/continuous.yml)
1210
A PowerShell module for selecting data from HTML using the [HTML Agility Pack](https://html-agility-pack.net/).
1311

1412
To install: `Install-Module SelectHtml`
1513

16-
![example usage of SelectHtml](SelectHtml.gif)
14+
![example usage of SelectHtml](images/SelectHtml.gif)
1715

1816
Cmdlets
1917
-------
2018

2119
Documentation is automatically generated using [platyPS](https://github.com/PowerShell/platyPS) (`.\doc.cmd`).
2220

23-
- [Select-Html](docs/Select-Html.md) &mdash; Returns content from the HTML retrieved from a URL.
21+
- [Select-Html](https://github.com/brianary/SelectHtml/wiki/Select-Html) &mdash; Returns content from the HTML retrieved from a URL.
2422

2523
Tests
2624
-----

β€ŽSelectHtml.slnβ€Ž

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

β€ŽSelectHtml.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/SelectHtml.fsproj" />
4+
</Folder>
5+
</Solution>

β€Ždoc.cmdβ€Ž

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

β€Ždocs/Select-Html.mdβ€Ž

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

0 commit comments

Comments
Β (0)