mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
update naming convention of artifact archives and installers
Co-authored-by: justynboyer@gmail.com <justynboyer@gmail.com>
This commit is contained in:
parent
b940021d99
commit
8696c71051
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
@ -52,26 +52,68 @@ jobs:
|
|||||||
./gradlew clean build --refresh-keys --refresh-dependencies
|
./gradlew clean build --refresh-keys --refresh-dependencies
|
||||||
./gradlew packageInstallers
|
./gradlew packageInstallers
|
||||||
working-directory: .
|
working-directory: .
|
||||||
|
|
||||||
|
# get version from jar
|
||||||
|
- name: Set Version Unix
|
||||||
|
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-13' }}
|
||||||
|
run: |
|
||||||
|
export VERSION=$(ls desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 | grep -Eo 'desktop-[0-9]+\.[0-9]+\.[0-9]+' | sed 's/desktop-//')
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
- name: Set Version Windows
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
run: |
|
||||||
|
$VERSION = (Get-ChildItem -Path desktop\build\temp-*/binaries\desktop-*.jar.SHA-256).Name -replace 'desktop-', '' -replace '-.*', ''
|
||||||
|
"VERSION=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||||
|
shell: powershell
|
||||||
|
|
||||||
- name: Move Release Files on Unix
|
- name: Move Release Files on Unix
|
||||||
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-13' }}
|
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-13' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir ${{ github.workspace }}/release
|
mkdir ${{ github.workspace }}/release
|
||||||
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
|
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
|
||||||
mv desktop/build/temp-*/binaries/haveno-*.rpm ${{ github.workspace }}/release
|
mkdir ${{ github.workspace }}/release-rpm
|
||||||
mv desktop/build/temp-*/binaries/haveno_*.deb ${{ github.workspace }}/release
|
mkdir ${{ github.workspace }}/release-deb
|
||||||
|
mv desktop/build/temp-*/binaries/haveno-*.rpm ${{ github.workspace }}/release-rpm/Haveno-${{ env.VERSION }}-x86_64.rpm
|
||||||
|
mv desktop/build/temp-*/binaries/haveno_*.deb ${{ github.workspace }}/release-deb/Haveno-${{ env.VERSION }}-x86_64.deb
|
||||||
else
|
else
|
||||||
mv desktop/build/temp-*/binaries/Haveno-*.dmg ${{ github.workspace }}/release
|
mv desktop/build/temp-*/binaries/Haveno-*.dmg ${{ github.workspace }}/release/Haveno-${{ env.VERSION }}.dmg
|
||||||
fi
|
fi
|
||||||
mv desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release
|
cp desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release
|
||||||
|
cp desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release-deb
|
||||||
|
cp desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release-rpm
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Move Release Files on Windows
|
- name: Move Release Files on Windows
|
||||||
if: ${{ matrix.os == 'windows-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir ${{ github.workspace }}/release
|
mkdir ${{ github.workspace }}/release
|
||||||
Move-Item -Path desktop\build\temp-*/binaries\Haveno-*.exe -Destination ${{ github.workspace }}/release
|
Move-Item -Path desktop\build\temp-*/binaries\Haveno-*.exe -Destination ${{ github.workspace }}/release/Haveno-${{ env.VERSION }}.exe
|
||||||
Move-Item -Path desktop\build\temp-*/binaries\desktop-*.jar.SHA-256 -Destination ${{ github.workspace }}/release
|
Move-Item -Path desktop\build\temp-*/binaries\desktop-*.jar.SHA-256 -Destination ${{ github.workspace }}/release
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
|
# win
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
name: "Windows artifacts"
|
||||||
|
if: ${{ matrix.os == 'windows-latest'}}
|
||||||
with:
|
with:
|
||||||
name: HavenoInstaller-${{ matrix.os }}
|
name: haveno-windows
|
||||||
path: ${{ github.workspace }}/release
|
path: ${{ github.workspace }}/release
|
||||||
|
# macos
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
name: "macOS artifacts"
|
||||||
|
if: ${{ matrix.os == 'macos-13' }}
|
||||||
|
with:
|
||||||
|
name: haveno-macos
|
||||||
|
path: ${{ github.workspace }}/release
|
||||||
|
# linux
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
name: "Linux - deb artifact"
|
||||||
|
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
||||||
|
with:
|
||||||
|
name: haveno-linux-deb
|
||||||
|
path: ${{ github.workspace }}/release-deb
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
name: "Linux - rpm artifact"
|
||||||
|
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
||||||
|
with:
|
||||||
|
name: haveno-linux-rpm
|
||||||
|
path: ${{ github.workspace }}/release-rpm
|
Loading…
Reference in New Issue
Block a user