Skip to content

Commit 5c830e2

Browse files
authored
Merge branch 'main' into WarnScopes
2 parents 112e324 + 57a1ad7 commit 5c830e2

File tree

4 files changed

+51
-6
lines changed

4 files changed

+51
-6
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ jobs:
3333
with:
3434
github_token: ${{ secrets.GITHUB_TOKEN }}
3535
publish_dir: ./output
36-
- name: "Publish"
37-
if: matrix.os == 'windows-latest' && github.ref == 'refs/heads/main'
38-
env:
39-
NUGET_KEY: ${{ secrets.NUGET_KEY }}
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: dotnet fsi build.fsx -p Release
4236

4337
analyze:
4438
name: Analyze solution

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
10+
DOTNET_CLI_TELEMETRY_OPTOUT: true
11+
12+
jobs:
13+
release:
14+
runs-on: windows-latest
15+
environment: release
16+
permissions:
17+
id-token: write
18+
attestations: write
19+
contents: write
20+
steps:
21+
- uses: actions/checkout@v6
22+
- name: Setup .NET Core
23+
uses: actions/setup-dotnet@v5
24+
- name: Init
25+
run: dotnet fsi build.fsx -p Init
26+
- name: Obtain NuGet key
27+
# this hash is v1.1.0
28+
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544
29+
id: login
30+
with:
31+
user: ${{ secrets.NUGET_USER }}
32+
- name: "Publish"
33+
env:
34+
NUGET_KEY: ${{ steps.login.outputs.NUGET_API_KEY }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: dotnet fsi build.fsx -p Release

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [7.0.5] - 2025-12-06
4+
5+
### Fixed
6+
7+
- Fixed automated GitHub releases. [#3205](https://github.com/fsprojects/fantomas/pull/3205)
8+
9+
## [7.0.4] - 2025-12-05
10+
11+
### Changed
12+
13+
- Add trusted publishing. [#3204](https://github.com/fsprojects/fantomas/pull/3204)
14+
315
## [7.0.3] - 2025-07-04
416

517
### Fixed

build.fsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ let getCurrentAndLastReleaseFromChangelog () =
437437

438438
pipeline "Release" {
439439
workingDir __SOURCE_DIRECTORY__
440+
stage "Build" { run "dotnet build -c Release" }
441+
stage "UnitTests" { run "dotnet test -c Release" }
442+
stage "Pack" { run "dotnet pack -c Release" }
440443
stage "Release" {
441444
run (fun _ ->
442445
async {

0 commit comments

Comments
 (0)