mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-07 19:32:34 +01:00
fix release action
This commit is contained in:
parent
6487aebc14
commit
ea88c1fa42
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
@ -14,28 +14,28 @@ jobs:
|
||||
os: [windows, macos, ubuntu]
|
||||
include:
|
||||
- os: windows
|
||||
build: npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/lib/index.js" --output "Fosscord-server-windows-${{ github.sha }}.exe"
|
||||
build: npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" --output "Fosscord-server-windows-${{ github.sha }}.exe"
|
||||
artifact: Fosscord-server-windows-${{ github.sha }}.exe
|
||||
- os: macos
|
||||
build: |
|
||||
npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/lib/index.js" --output "Fosscord.app"
|
||||
npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" --output "Fosscord.app"
|
||||
tar -czf "Fosscord--server-macos-${{ github.sha }}.app.tgz" "Fosscord.app"
|
||||
artifact: Fosscord--server-macos-${{ github.sha }}.app.tgz
|
||||
- os: ubuntu
|
||||
build: |
|
||||
npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/lib/index.js" --output "fosscord"
|
||||
npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" --output "fosscord"
|
||||
tar -czf "fosscord-server-linux-${{ github.sha }}.tgz" "fosscord"
|
||||
artifact: fosscord-server-linux-${{ github.sha }}.tgz
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 15
|
||||
- run: |
|
||||
npm i
|
||||
npm run build
|
||||
${{ matrix.build }}
|
||||
node-version: 16
|
||||
cache: "npm"
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
- run: ${{ matrix.build }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.artifact }}
|
||||
@ -47,13 +47,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Fosscord-windows-${{ github.sha }}.exe
|
||||
name: fosscord-server-windows-${{ github.sha }}.exe
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Fosscord-macos-${{ github.sha }}.app.tgz
|
||||
name: fosscord-server-macos-${{ github.sha }}.app.tgz
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Fosscord-linux-${{ github.sha }}.tgz
|
||||
name: fosscord-server-linux-${{ github.sha }}.tgz
|
||||
- run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
|
||||
id: tag
|
||||
- uses: actions/create-release@v1
|
||||
@ -68,22 +68,22 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||
asset_path: Fosscord-windows-${{ github.sha }}.exe
|
||||
asset_name: Fosscord-windows-${{ steps.tag.outputs.tag }}.exe
|
||||
asset_path: fosscord-server-windows-${{ github.sha }}.exe
|
||||
asset_name: fosscord-server-windows-${{ steps.tag.outputs.tag }}.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-macos-${{ github.sha }}.app.tgz
|
||||
asset_name: Fosscord-macos-${{ steps.tag.outputs.tag }}.app.tgz
|
||||
asset_path: fosscord-server-macos-${{ github.sha }}.app.tgz
|
||||
asset_name: fosscord-server-macos-${{ steps.tag.outputs.tag }}.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-linux-${{ github.sha }}.tgz
|
||||
asset_name: Fosscord-linux-${{ steps.tag.outputs.tag }}.tgz
|
||||
asset_path: fosscord-server-linux-${{ github.sha }}.tgz
|
||||
asset_name: fosscord-server-linux-${{ steps.tag.outputs.tag }}.tgz
|
||||
asset_content_type: application/gzip
|
||||
|
Loading…
Reference in New Issue
Block a user