v1.22.100-2-128tech #89
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: Release pipeline for 128tech RPMs | |
on: | |
release: | |
types: [published] | |
tags: [128tech-v*] | |
jobs: | |
build: | |
name: Build RPMs | |
runs-on: ubuntu-latest | |
env: | |
VERSION_TAG: ${{ github.event.release.tag_name }} | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Extract the version information from the tag name | |
run: bash .github/scripts/set_version_environment_variables.sh | |
- name: Get Release | |
id: get_release | |
uses: bruceadams/get-release@v1.2.2 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Build x86_64 RPMs | |
id: build_x86 | |
uses: ./.github/actions | |
with: | |
version: ${{ env.VERSION }} | |
patch: ${{ env.VERSION_PATCH }} | |
arch: x86_64 | |
- name: Upload x86_64 RPM to Github | |
uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: build/dist/${{ env.BASE_RPM_NAME }}.x86_64.rpm | |
asset_name: ${{ env.BASE_RPM_NAME }}.x86_64.rpm | |
asset_content_type: application/x-rpm | |
- name: Build aarch64 RPMs | |
id: build_aarch | |
uses: ./.github/actions | |
with: | |
version: ${{ env.VERSION }} | |
patch: ${{ env.VERSION_PATCH }} | |
arch: aarch64 | |
- name: Upload aarch64 RPM to Github | |
uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: build/dist/${{ env.BASE_RPM_NAME }}.aarch64.rpm | |
asset_name: ${{ env.BASE_RPM_NAME }}.aarch64.rpm | |
asset_content_type: application/x-rpm |