diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27e9557..f918caa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,20 +17,6 @@ jobs: - name: Conventional Commits uses: aevea/commitsar@v0.15.0 - goreadme: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: Update readme according to Go doc - uses: posener/goreadme@v1 - with: - badge-travisci: 'true' - badge-codecov: 'true' - badge-godoc: 'true' - badge-goreadme: 'true' - github-token: '${{ secrets.GITHUB_TOKEN }}' - lint: runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 0062706..a7440ef 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -6,13 +6,13 @@ on: - main jobs: - conventional-commits: + version: runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@v2 - - name: Increment Version + Generate Changelog + - name: Conventional Commits Versioning + Changelog id: changelog uses: TriPSs/conventional-changelog-action@v3 with: @@ -21,7 +21,7 @@ jobs: output-file: false skip-commit: true - - name: Create Release + - name: Tag + Release uses: actions/create-release@v1 if: ${{ steps.changelog.outputs.skipped == 'false' }} env: @@ -29,4 +29,19 @@ jobs: with: tag_name: ${{ steps.changelog.outputs.tag }} release_name: ${{ steps.changelog.outputs.tag }} - body: ${{ steps.changelog.outputs.clean_changelog }} \ No newline at end of file + body: ${{ steps.changelog.outputs.clean_changelog }} + + docs: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: Update readme according to Go doc + uses: posener/goreadme@v1 + with: + email: 'marksalpeter@gmail.com' + badge-codecov: true + badge-godoc: true + badge-goreadme: true + badge-goreportcard: true + github-token: '${{ secrets.GITHUB_TOKEN }}' \ No newline at end of file