Skip to content

Commit

Permalink
Publish pre-release for each push on main (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsavoire authored and Gandem committed Jun 26, 2024
1 parent bcb5210 commit 7b17e3a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,26 @@ jobs:
name: agent-${{ matrix.os == 'arm-4core-linux' && 'aarch64' || 'x86_64' }}
path: otel-profiling-agent

publish:
env:
RELEASE_VERSION: dev
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
name: Publish pre-release
needs: test
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Create assets
run: |
tar czf otel-profiling-agent-${RELEASE_VERSION}-aarch64.tar.gz -C agent-aarch64 .
tar czf otel-profiling-agent-${RELEASE_VERSION}-x86_64.tar.gz -C agent-x86_64 .
- name: Create pre-release
uses: ncipollo/release-action@v1
with:
artifacts: "otel-profiling-agent-dev-*.tar.gz"
allowUpdates: true
removeArtifacts: true
omitBody: true
prerelease: true
tag: ${{ env.RELEASE_VERSION }}

0 comments on commit 7b17e3a

Please sign in to comment.