diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000000..69253a79b0 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,31 @@ +changelog: + categories: + - title: 🚨 Breaking changes + labels: + - backwards-incompatible + - breaking + - title: ✨ New features and enhancements + labels: + - enhancement + - title: 🐞 Fixed bugs + labels: + - bug + - title: ⚠️ Deprecated + labels: + - deprecated + - title: ⛔ Removed + labels: + - removed + - title: 📚 Documentation + labels: + - doc + - title: 🏗 Chores + labels: + - chore + - dependency + - dependencies + - security + - dependabot + - title: Other changes + labels: + - '*' diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index 5cc427b7d1..0000000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Generate changelog - -on: - workflow_dispatch: - release: - types: [published] - -jobs: - generate-changelog: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Checkout wiki repository - uses: actions/checkout@v3 - with: - repository: c2corg/c2c_ui.wiki - ref: master - path: wiki - - name: Configure git - run: | - git config --global user.email "action@github.com" - git config --global user.name "GitHub Action" - - name: Generate changelog - id: changelog - uses: c2corg/generate-changelog-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - write_to: wiki/Changelog.md - - name: Commit files - working-directory: wiki - run: | - git config --global user.email "action@github.com" - git config --global user.name "GitHub Action" - git add Changelog.md - git commit -m "Update changelog" - - name: Push changes - uses: ad-m/github-push-action@v0.6.0 - with: - directory: wiki - repository: c2corg/c2c_ui.wiki - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b14ca876d..f736cdd4eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,13 +120,6 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Generate changelog for release - id: release_changelog - run: | - previousTag=$(git tag | sort -V -r | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}') - currentTag=$(git tag | sort -V -r | head -1) - changelog=$(git log --pretty=oneline ${previousTag}..${currentTag} --no-merges) - echo "changelog=$changelog" >> $GITHUB_OUTPUT - name: Create or update release uses: meeDamian/github-release@2.0 with: