gitscope
← marzneshin / v0.1.1 / .github/workflows/release.yml
https://dev.kronoz.win/r/marzneshin.git
.github/workflows/release.yml · YAML
Blame Raw
 1name: Release
 2
 3on: 
 4  push:
 5    branches:
 6      - main
 7
 8jobs:
 9  changelog:
10    runs-on: ubuntu-latest
11
12    steps:
13      - uses: actions/checkout@v2
14      - name: Conventional Changelog Action
15        id: changelog
16        uses: TriPSs/conventional-changelog-action@v3.7.1
17        with:
18          github-token: ${{ secrets.CHANGELOG_RELEASE }}
19          git-message: 'chore(release): {version}'
20          git-user-name: 'krr0ption'
21          git-user-email: 'info@mardin.cc'
22          preset: 'angular'
23          tag-prefix: 'v'
24
25      - name: Create release
26        uses: actions/create-release@v1
27        if: ${{ steps.changelog.outputs.skipped == 'false' }}
28        env:
29          GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
30        with:
31          tag_name: ${{ steps.changelog.outputs.tag }}
32          release_name: ${{ steps.changelog.outputs.tag }}
33          body: ${{ steps.changelog.outputs.clean_changelog }}