Skip to content

Commit

Permalink
Proposal: move to CHANGELOG-based release process (ionide#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel authored Jan 23, 2022
1 parent a7af704 commit 5aabe5a
Show file tree
Hide file tree
Showing 16 changed files with 576 additions and 486 deletions.
6 changes: 3 additions & 3 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fake-cli": {
"version": "5.20.4-alpha.1642",
"version": "5.21.0-alpha004",
"commands": [
"fake"
]
Expand All @@ -21,13 +21,13 @@
]
},
"dotnet-reportgenerator-globaltool": {
"version": "4.8.7",
"version": "5.0.2",
"commands": [
"reportgenerator"
]
},
"fantomas-tool": {
"version": "4.6.0-alpha-004",
"version": "4.6.0",
"commands": [
"fantomas"
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [windows-2019, macos-10.15, ubuntu-20.04]
dotnet: [5.0.403]
dotnet: [6.0.100]
fail-fast: false # we have timing issues on some OS, so we want them all to run

runs-on: ${{ matrix.os }}
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Release

on:
workflow_dispatch:
inputs:
username:
description: Github username of the person triggering the release
default: "Krzysztof-Cieslak"
required: true
email:
description: Email of the person triggering the release
default: "krzysztof_cieslak@windowslive.com"
required: true
push:
tags:
- "v*"

jobs:
release:
strategy:
matrix:
dotnet: [5.0.403]
dotnet: [6.0.100]

runs-on: ubuntu-20.04

steps:
# manual triggers are detached HEADs, so we need to checkout the branch
# to actually create + push a commit later on in the workflow.
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
# use the same token as the commit to sidestep github's branch protection nonsense
token: ${{ secrets.FSAC_CHECKS_TOKEN }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore tools
run: dotnet tool restore
- name: Run Build
run: dotnet fake build -t Build
- name: Publish Release
env:
nuget-key: ${{ secrets.NUGET_KEY }}
github-token: ${{ secrets.FSAC_CHECKS_TOKEN }}
github-user: ${{ github.event.inputs.username }}
user-email: ${{ github.event.inputs.email }}
run: dotnet fake build -t Release
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}

- name: Restore tools
run: dotnet tool restore

- name: Run Build
run: dotnet fake build -t Release

- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v1.1.0
with:
version: ${{ github.ref }}
path: ./CHANGELOG.md

- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: bin/pkgs/*.nupkg
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog_reader.outputs.log_entry }}

- name: Push packages
run: dotnet nuget push bin/pkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
Loading

0 comments on commit 5aabe5a

Please sign in to comment.