Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,36 @@ jobs:
fail_on_unmatched_files: true
generate_release_notes: true
files: |
dist/${{ github.event.repository.name }}-**
dist/${{ github.event.repository.name }}-**

main_release:
name: Update main aali repo and create release
needs: [ release, docker ]
runs-on: ubuntu-latest
steps:
- name: Checkout aali repository
run: |
git clone --branch main https://${{ secrets.AALI_RELEASE_TOKEN }}@github.com/ansys/aali.git

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'aali/scripts/releasehelper/go.mod'

- name: Run tag script
run: |
cd aali/scripts/releasehelper
go run main.go "tag" ${{ github.ref_name }} ${{ secrets.AALI_RELEASE_TOKEN }}

- name: Commit and push to aali
run: |
cd aali
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git config --global user.name '${{ github.actor }}'
git commit -a -m 'New release triggered by ${{ github.event.repository.name }}'
git push origin main

- name: Run release script
run: |
cd aali/scripts/releasehelper
go run main.go "release" ${{ github.ref_name }} ${{ secrets.AALI_RELEASE_TOKEN }}