chipmunk rpm package creation and publish to repository #1
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: Distribute Chipmunk on RPM/YUM | |
run-name: chipmunk rpm package creation and publish to repository | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create RPM package | |
run: | | |
bash distribute_to_rpm.sh | |
- name: list RPM package | |
working-directory: . | |
run: | | |
echo "RPM_FILE=$(find -type f -name '*-x86_64.rpm' -printf '%f\n')" >> $GITHUB_ENV | |
- name: list tag_name | |
run: | | |
echo ${{ github.ref_name }} | |
- name: Upload RPM to chipmunk using overwrite functionality | |
id: upload_rpm | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_name: esrlabs/chipmunk | |
repo_token: ${{ secrets.CHIPMUNK_TOKEN }} | |
file: ./${{ env.RPM_FILE }} | |
asset_name: ${{ env.RPM_FILE }} | |
tag: ${{ github.ref_name }} | |
overwrite: true |