Skip to content

Commit

Permalink
Merge pull request #16 from vincejv/feat/automate_tagging
Browse files Browse the repository at this point in the history
feat(github-actions): migrate to github actions for CI/CD, modula…
  • Loading branch information
vincejv authored Oct 16, 2022
2 parents 9ee7ca2 + 82ae36d commit 687ccdc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,29 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }} -Dsonar.qualitygate.wait=true

versioning:
name: Versioning
runs-on: ubuntu-latest
needs: code_quality_checks
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

deploy_to_cloud:
name: Deploy to Cloud Run
runs-on: ubuntu-latest
needs: code_quality_checks
needs: versioning
permissions:
contents: read
packages: write
Expand Down

0 comments on commit 687ccdc

Please sign in to comment.