Skip to content

Commit

Permalink
ci: add release workflow (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne4to authored Oct 30, 2023
1 parent 476c272 commit 7bbf788
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
template: |
## What’s Changed
$CHANGES
24 changes: 24 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create release

on:
push:
branches: [ main ]
# pull_request:
# branches:
# - main

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Release Drafter
uses: release-drafter/release-drafter@v5.25.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/push-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- main
- main

jobs:
build:
Expand All @@ -27,7 +27,7 @@ jobs:
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Pack release
if: ${{ github.ref_name == 'main' }}
run: dotnet pack --configuration Release --no-build
run: dotnet pack --configuration Release --no-build
- name: Pack RC
if: ${{ github.ref_name != 'main' }}
run: dotnet pack --configuration Release --no-build --version-suffix "rc.${GITHUB_RUN_NUMBER}"
Expand Down

0 comments on commit 7bbf788

Please sign in to comment.