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

🐛 fix release name

This commit is contained in:
Flam3rboy 2021-07-11 09:44:32 +02:00
parent e9933fcf3e
commit c2247aac3c

View File

@ -55,20 +55,25 @@ jobs:
name: fosscord-server-linux-${{ github.sha }}.tgz name: fosscord-server-linux-${{ github.sha }}.tgz
- run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}" - run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
id: tag id: tag
- name: Extract version
id: extract_version
uses: Saionaro/extract-package-version@v1.0.6
- uses: actions/create-release@v1 - uses: actions/create-release@v1
id: create-release id: create-release
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.tag.outputs.tag }} tag_name: v${{ steps.extract_version.outputs.version }}
release_name: Release ${{ steps.tag.outputs.tag }} release_name: Release ${{ steps.extract_version.outputs.version }}
draft: true
prerelease: true # TODO: change this to false
- uses: actions/upload-release-asset@v1 - uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create-release.outputs.upload_url }} upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: fosscord-server-windows-${{ github.sha }}.exe asset_path: fosscord-server-windows-${{ github.sha }}.exe
asset_name: fosscord-server-windows-${{ steps.tag.outputs.tag }}.exe asset_name: fosscord-server-windows.exe
asset_content_type: application/vnd.microsoft.portable-executable asset_content_type: application/vnd.microsoft.portable-executable
- uses: actions/upload-release-asset@v1 - uses: actions/upload-release-asset@v1
env: env:
@ -76,7 +81,7 @@ jobs:
with: with:
upload_url: ${{ steps.create-release.outputs.upload_url }} upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: fosscord-server-macos-${{ github.sha }}.app.tgz asset_path: fosscord-server-macos-${{ github.sha }}.app.tgz
asset_name: fosscord-server-macos-${{ steps.tag.outputs.tag }}.app.tgz asset_name: fosscord-server-macos.app.tgz
asset_content_type: application/gzip asset_content_type: application/gzip
- uses: actions/upload-release-asset@v1 - uses: actions/upload-release-asset@v1
env: env:
@ -84,5 +89,5 @@ jobs:
with: with:
upload_url: ${{ steps.create-release.outputs.upload_url }} upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: fosscord-server-linux-${{ github.sha }}.tgz asset_path: fosscord-server-linux-${{ github.sha }}.tgz
asset_name: fosscord-server-linux-${{ steps.tag.outputs.tag }}.tgz asset_name: fosscord-server-linux.tgz
asset_content_type: application/gzip asset_content_type: application/gzip