Build updates and fix for docker mount issue in v1.9 (#643) #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release to GitHub | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
publish-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- id: get_approvers | |
run: | | |
echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT | |
- uses: trstringer/manual-approval@v1 | |
with: | |
secret: ${{ github.TOKEN }} | |
approvers: ${{ steps.get_approvers.outputs.approvers }} | |
minimum-approvals: 1 | |
issue-title: 'Release opensearch-benchmark' | |
issue-body: "Please approve or deny the release of opensearch-benchmark. **Tag**: ${{ github.ref_name }} **Commit**: ${{ github.sha }}" | |
exclude-workflow-initiator-as-approver: true | |
- name: Set up Python 3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Build project for distribution | |
run: | | |
make build | |
tar zcvf artifacts.tar.gz dist | |
- name: Publish release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
generate_release_notes: true | |
files: artifacts.tar.gz |