Create Test Release #585
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
# -------------------------------------------------------------------------------------------- | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. See License.txt in the project root for license information. | |
# -------------------------------------------------------------------------------------------- | |
# | |
# Test Release workflow for Mount Helper Script. | |
# | |
name: Create Test Release | |
on: | |
workflow_dispatch: | |
inputs: | |
versionName: | |
description: 'Version Name' | |
required: true | |
permissions: | |
contents: write | |
jobs: | |
package_mount_helper: | |
name: Package and Release Mount Helper ${{ github.event.inputs.versionName }} (Test Release) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Version Number | |
shell: bash | |
run: | | |
versionName=${{ github.event.inputs.versionName }} | |
if echo $versionName | grep -v -q "^0\."; then | |
echo "Test Release version must be of the form 0.y.z" | |
false | |
fi | |
- name: Install arm64 Cross-Compile Toolchain | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt install -y gcc-aarch64-linux-gnu | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run Package.sh | |
shell: bash | |
run: | | |
export RELEASE_NUMBER=${{ github.event.inputs.versionName }} | |
export STG_DIR=$GITHUB_WORKSPACE | |
export SOURCE_DIR=$GITHUB_WORKSPACE | |
chmod +x $GITHUB_WORKSPACE/package.sh | |
$GITHUB_WORKSPACE/package.sh | |
- name: Create Test Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Test Release ${{ github.event.inputs.versionName }} | |
prerelease: true | |
tag_name: ${{ github.event.inputs.versionName }} | |
target_commitish: ${{ github.sha }} | |
files: | | |
${{ github.workspace }}/deb/aznfs-${{ github.event.inputs.versionName }}-1_amd64.deb | |
${{ github.workspace }}/rpm/root/rpmbuild/RPMS/x86_64/aznfs-${{ github.event.inputs.versionName }}-1.x86_64.rpm | |
${{ github.workspace }}/suse/root/rpmbuild/RPMS/x86_64/aznfs_sles-${{ github.event.inputs.versionName }}-1.x86_64.rpm | |
${{ github.workspace }}/mariner/root/rpmbuild/RPMS/x86_64/aznfs_mariner-${{ github.event.inputs.versionName }}-1.x86_64.rpm | |
${{ github.workspace }}/scripts/aznfs_install.sh | |
${{ github.workspace }}/tarball/aznfs-${{ github.event.inputs.versionName }}-1.x86_64.tar.gz | |
${{ github.workspace }}/tarball/aznfs-${{ github.event.inputs.versionName }}-1.arm64.tar.gz | |
body: | | |
New Test Release ${{ github.event.inputs.versionName }} |