Skip to content

Commit

Permalink
Update onebranch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NarmalaSk authored Jan 1, 2025
1 parent d41f83e commit cf230fa
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/onebranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: OneBranch-Style Build
on:
push:
branches: main
tags: # Trigger when a tag is pushed
- 'v*' # Match tags starting with 'v'
pull_request:
branches: main

Expand Down Expand Up @@ -41,3 +43,35 @@ jobs:
build/bin/**/quicreach
build/bin/**/quicreach.exe
build/bin/**/quicreach.msi
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }} # Use the tag that triggered the workflow
release_name: Release ${{ github.ref_name }}
body: |
## Release Notes
Automated release for tag ${{ github.ref_name }}.
draft: false
prerelease: false

- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/bin/**/*.msi
asset_name: quicreach-${{ github.ref_name }}-${{ matrix.arch }}.msi
asset_content_type: application/octet-stream

0 comments on commit cf230fa

Please sign in to comment.