Skip to content

Commit

Permalink
Release v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Nov 6, 2023
1 parent 2b01e67 commit f20732a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# We use `MainLine Development`. See https://gitversion.net/docs/reference/modes/mainline

name: Publish to PowerShell Gallery

on:
push:
branches:
- main
tags:
- v*
paths-ignore:
Expand Down Expand Up @@ -147,11 +143,11 @@ jobs:
# run: ls -R

# see https://github.com/Jaykul/RequiredModules/issues/6
# - name: Manually Install Modules F7History is dependent on
# shell: pwsh
# run: |
# Install-Module -Name Microsoft.PowerShell.ConsoleGuiTools -Force -SkipPublisherCheck -Scope CurrentUser
# Install-Module -Name PSReadLine -Force -SkipPublisherCheck -Scope CurrentUser
- name: Manually Install Modules F7History is dependent on
shell: pwsh
run: |
Install-Module -Name Microsoft.PowerShell.ConsoleGuiTools -Force -SkipPublisherCheck -Scope CurrentUser
Install-Module -Name PSReadLine -Force -SkipPublisherCheck -Scope CurrentUser
- name: Publish Module to PowerShell Gallery
shell: pwsh
Expand Down
13 changes: 9 additions & 4 deletions DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ If `Build.ps1` finds a local repository it will use it instead of the PowerShell

## To Publish a new version to the PowerShell Gallery:

We use `MainLine Development`. See https://gitversion.net/docs/reference/modes/mainline

The module is published to the PowerShell Gallery using GitHub Actions. See the publish.yml GitHub Action for details.

Merge changes to the `main` branch, or push directly to `main`. The GitHub Action will build and publish the module to the PowerShell Gallery here: https://www.powershellgallery.com/packages/F7History
1) Merge changes to the `main` branch, or push directly to `main`. The GitHub Action will build the module, but not publish it.

2) Add and push a new tag

```ps1
git tag v1.4.1 -a -m "Release v1.4.1"
git push --atomic origin main v1.4.1
```

To increment the minor version ensure the merge message includes "+semver: minor". To increment the major version ensure the merge message includes "+semver: major". See https://gitversion.net/docs/reference/version-increments
This will build, test, and publish to the PowerShell Gallery here: https://www.powershellgallery.com/packages/F7History

## Contributors ✨

Expand Down

0 comments on commit f20732a

Please sign in to comment.