Skip to content

Commit e5c7377

Browse files
chore: add release workflow
1 parent cc00466 commit e5c7377

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

.github/workflows/merge.yml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,6 @@ jobs:
3333
id: pr
3434
uses: bcgov-nr/action-get-pr@v0.0.1
3535

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-
6536
deploy-to-aws-dev:
6637
needs: [vars]
6738
name: Deploys Application to AWS dev
@@ -91,3 +62,33 @@ jobs:
9162
prod
9263
latest
9364
${{ 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

Comments
 (0)