From d912478633de9dbecca9fc2fd93618505c869619 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 11 Jul 2021 09:53:19 +0200 Subject: [PATCH] :bug: fix version release name --- .github/workflows/release.yml | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4df8d3c1..7b35a55d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,18 +14,18 @@ jobs: os: [windows, macos, ubuntu] include: - os: windows - build: npx caxa -i . --output "fosscord-server-windows-${{ github.sha }}.exe" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" - artifact: fosscord-server-windows-${{ github.sha }}.exe + build: npx caxa -i . --output "windows-${{ github.sha }}.exe" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" + artifact: windows-${{ github.sha }}.exe - os: macos build: | npx caxa -i . --output "fosscord.app" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" - tar -czf "fosscord-server-macos-${{ github.sha }}.app.tgz" "fosscord.app" - artifact: fosscord-server-macos-${{ github.sha }}.app.tgz + tar -czf "macos-${{ github.sha }}.app.tgz" "fosscord.app" + artifact: macos-${{ github.sha }}.app.tgz - os: ubuntu build: | npx caxa -i . --output "fosscord" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" - tar -czf "fosscord-server-linux-${{ github.sha }}.tgz" "fosscord" - artifact: fosscord-server-linux-${{ github.sha }}.tgz + tar -czf "linux-${{ github.sha }}.tgz" "fosscord" + artifact: linux-${{ github.sha }}.tgz runs-on: ${{ matrix.os }}-latest steps: - uses: actions/checkout@v2 @@ -46,15 +46,11 @@ jobs: steps: - uses: actions/download-artifact@v2 with: - name: fosscord-server-windows-${{ github.sha }}.exe + name: windows-${{ github.sha }}.exe - uses: actions/download-artifact@v2 with: - name: fosscord-server-macos-${{ github.sha }}.app.tgz - - uses: actions/download-artifact@v2 - with: - name: fosscord-server-linux-${{ github.sha }}.tgz - - run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}" - id: tag + name: macos-${{ github.sha }}.app.tgz + - uses: actions/checkout@v2 - name: Extract version id: extract_version uses: Saionaro/extract-package-version@v1.0.6 @@ -72,22 +68,22 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: fosscord-server-windows-${{ github.sha }}.exe - asset_name: fosscord-server-windows.exe + asset_path: windows-${{ github.sha }}.exe + asset_name: fosscord-api-windows.exe asset_content_type: application/vnd.microsoft.portable-executable - uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: fosscord-server-macos-${{ github.sha }}.app.tgz - asset_name: fosscord-server-macos.app.tgz + asset_path: macos-${{ github.sha }}.app.tgz + asset_name: fosscord-api-macos.app.tgz asset_content_type: application/gzip - uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: fosscord-server-linux-${{ github.sha }}.tgz - asset_name: fosscord-server-linux.tgz + asset_path: linux-${{ github.sha }}.tgz + asset_name: fosscord-api-linux.tgz asset_content_type: application/gzip