1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

🐛 fix version release name

This commit is contained in:
Flam3rboy 2021-07-11 09:53:19 +02:00
parent c2247aac3c
commit d912478633

View File

@ -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