Skip to content

Commit

Permalink
minor: Generates the first release
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoaraujo committed Oct 9, 2023
1 parent b8dc51f commit f8d75a9
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Sanity check
name: Release

on:
- push
- pull_request

jobs:
prcheck:
sanitycheck:
name: Sanity check
runs-on: ubuntu-latest
steps:
Expand All @@ -30,4 +29,29 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

release:
needs: sanitycheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'

- name: Bump version and push tag
id: version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
MAJOR_STRING_TOKEN: "major:"
MINOR_STRING_TOKEN: "minor:"
PATCH_STRING_TOKEN: "patch:"

- name: Create Release
id: release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.new_tag }}
token: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit f8d75a9

Please sign in to comment.