diff --git a/.github/release-drafter.yaml b/.github/release-drafter.yaml new file mode 100644 index 0000000..d9afcfa --- /dev/null +++ b/.github/release-drafter.yaml @@ -0,0 +1,25 @@ +name-template: 'v$NEXT_PATCH_VERSION' +tag-template: 'v$NEXT_PATCH_VERSION' +categories: + - title: 'πŸš€ Features' + label: 'feature' + keywords: + - 'feat' + - 'feature' + - title: 'πŸ› Bug Fixes' + label: 'bug' + keywords: + - 'fix' + - 'bug' + - title: 'πŸ›  Maintenance' + label: 'maintenance' + keywords: + - 'chore' + - 'maintenance' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +template: | + ## What’s Changed + + $CHANGES + + **Full Changelog**: https://github.com/memstechtips/UnattendedWinstall/compare/$PREVIOUS_TAG...$NEW_TAG diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ae82619 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Draft Release + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install and run Release Drafter + uses: release-drafter/release-drafter@v5 + with: + config-name: .github/release-drafter.yaml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}