|
33 | 33 | id: pr
|
34 | 34 | uses: bcgov-nr/action-get-pr@v0.0.1
|
35 | 35 |
|
36 |
| - # Leaving this in for now as OpenShift deployment is likely needed for |
37 |
| - # the API to communicate with Oracle database |
38 |
| - # deploy-test: |
39 |
| - # name: Deploy (test) |
40 |
| - # uses: ./.github/workflows/.deployer.yml |
41 |
| - # secrets: |
42 |
| - # oc_namespace: ${{ secrets.OC_NAMESPACE }} |
43 |
| - # oc_token: ${{ secrets.OC_TOKEN }} |
44 |
| - # with: |
45 |
| - # environment: test |
46 |
| - # db_user: app |
47 |
| - # |
48 |
| - # deploy-prod: |
49 |
| - # name: Deploy (prod) |
50 |
| - # needs: [deploy-test, vars] |
51 |
| - # uses: ./.github/workflows/.deployer.yml |
52 |
| - # secrets: |
53 |
| - # oc_namespace: ${{ secrets.OC_NAMESPACE }} |
54 |
| - # oc_token: ${{ secrets.OC_TOKEN }} |
55 |
| - # with: |
56 |
| - # environment: prod |
57 |
| - # db_user: app |
58 |
| - # params: |
59 |
| - # --set backend.deploymentStrategy=RollingUpdate |
60 |
| - # --set frontend.deploymentStrategy=RollingUpdate |
61 |
| - # --set global.autoscaling=true |
62 |
| - # --set frontend.pdb.enabled=true |
63 |
| - # --set backend.pdb.enabled=true |
64 |
| - |
65 | 36 | deploy-to-aws-dev:
|
66 | 37 | needs: [vars]
|
67 | 38 | name: Deploys Application to AWS dev
|
|
91 | 62 | prod
|
92 | 63 | latest
|
93 | 64 | ${{ needs.vars.outputs.pr }}
|
| 65 | +
|
| 66 | + release: |
| 67 | + name: Release |
| 68 | + needs: [promote] |
| 69 | + runs-on: ubuntu-24.04 |
| 70 | + steps: |
| 71 | + - uses: actions/checkout@v4 |
| 72 | + |
| 73 | + - name: Conventional Changelog Update |
| 74 | + uses: TriPSs/conventional-changelog-action@v5 |
| 75 | + id: changelog |
| 76 | + continue-on-error: true |
| 77 | + with: |
| 78 | + github-token: ${{ github.token }} |
| 79 | + output-file: "CHANGELOG.md" |
| 80 | + skip-version-file: "true" |
| 81 | + skip-commit: "true" |
| 82 | + git-push: "true" |
| 83 | + |
| 84 | + - name: Create Release |
| 85 | + uses: softprops/action-gh-release@v2 |
| 86 | + if: ${{ steps.changelog.outputs.tag != '' }} |
| 87 | + continue-on-error: true |
| 88 | + env: |
| 89 | + GITHUB_TOKEN: ${{ github.token }} |
| 90 | + with: |
| 91 | + token: ${{ github.token }} |
| 92 | + tag_name: ${{ steps.changelog.outputs.tag }} |
| 93 | + name: ${{ steps.changelog.outputs.tag }} |
| 94 | + body: ${{ steps.changelog.outputs.clean_changelog }} |
0 commit comments