summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-15 13:37:26 +0200
committerGitHub <noreply@github.com>2021-08-15 13:37:26 +0200
commit1c5f33bb2bac4ef38cf9aa4f27511fef59281789 (patch)
tree6a4db9b509c0f74a8cafbe4c37117a9c0aaa4167 /.github/workflows
parentUpdate release.yml (diff)
downloadserver-1c5f33bb2bac4ef38cf9aa4f27511fef59281789.tar.xz
Update release.yml
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml189
1 files changed, 94 insertions, 95 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a6637f15..b1d9094f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,105 +1,104 @@
 on:
-	workflow_dispatch:
-	push:
-		# Sequence of patterns matched against refs/tags
-		tags:
-			- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
+  workflow_dispatch:
+  push:
+    # Sequence of patterns matched against refs/tags
+    tags:
+      - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
 
 name: Publish Release
 
-
 jobs:
-	insiders-build:
-		strategy:
-			matrix:
-				os: [windows, macos, ubuntu]
-				include:
-					- os: windows
-					  build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'
-					  artifact: fosscord-server-windows.exe
-					- os: macos
-					  build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app'
-					  artifact: fosscord-server-macos.app.tgz
-					- os: ubuntu
-					  build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-server-linux.tgz' 'fosscord'
-					  artifact: fosscord-server-linux.tgz
-		runs-on: ${{ matrix.os }}-latest
-		steps:
-			- uses: actions/checkout@v2
-			- uses: actions/setup-node@v2
-			  env:
-				  MONGOMS_VERSION: 4.4.3
-			  with:
-				  node-version: 14
-			- run: |
-			  cd bundle
-			  npm install
-			  npm i caxa
-				npm run build
-				${{ matrix.build }}
-			- uses: actions/upload-artifact@v2
-			  with:
-				  name: ${{ matrix.artifact }}
-				  path: ${{ matrix.artifact }}
+  insiders-build:
+    strategy:
+      matrix:
+        os: [windows, macos, ubuntu]
+        include:
+          - os: windows
+            build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'
+            artifact: fosscord-server-windows.exe
+          - os: macos
+            build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app'
+            artifact: fosscord-server-macos.app.tgz
+          - os: ubuntu
+            build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-server-linux.tgz' 'fosscord'
+            artifact: fosscord-server-linux.tgz
+    runs-on: ${{ matrix.os }}-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-node@v2
+        env:
+          MONGOMS_VERSION: 4.4.3
+        with:
+          node-version: 14
+      - run: |
+        cd bundle
+        npm install
+        npm i caxa
+        npm run build
+        ${{ matrix.build }}
+      - uses: actions/upload-artifact@v2
+        with:
+          name: ${{ matrix.artifact }}
+          path: bundle/${{ matrix.artifact }}
 
-	release:
-		needs: [insiders-build]
-		runs-on: ubuntu-latest
-		steps:
-			- uses: actions/checkout@v2
-			- name: Extract version
-			  id: extract_version
-			  uses: Saionaro/extract-package-version@v1.0.6
-			  with:
-				  path: api
-			- uses: actions/download-artifact@v2
-			  with:
-				  name: fosscord-server-windows.exe
-			- uses: actions/download-artifact@v2
-			  with:
-				  name: fosscord-server-macos.app.tgz
-			- uses: actions/download-artifact@v2
-			  with:
-				  name: fosscord-server-linux.tgz
-			- uses: actions/create-release@v1
-			  id: create-release
-			  env:
-				  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-			  with:
-				  tag_name: v${{ steps.extract_version.outputs.version }}
-				  release_name: Server v${{ steps.extract_version.outputs.version }}
-				  draft: false
-				  prerelease: true # TODO: change this to false
-				  body: >
-					  ## Download
+  release:
+    needs: [insiders-build]
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Extract version
+        id: extract_version
+        uses: Saionaro/extract-package-version@v1.0.6
+        with:
+          path: api
+      - uses: actions/download-artifact@v2
+        with:
+          name: fosscord-server-windows.exe
+      - uses: actions/download-artifact@v2
+        with:
+          name: fosscord-server-macos.app.tgz
+      - uses: actions/download-artifact@v2
+        with:
+          name: fosscord-server-linux.tgz
+      - uses: actions/create-release@v1
+        id: create-release
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          tag_name: v${{ steps.extract_version.outputs.version }}
+          release_name: Server v${{ steps.extract_version.outputs.version }}
+          draft: false
+          prerelease: true # TODO: change this to false
+          body: >
+            ## Download
 
-					  - [Windows](https://github.com/fosscord/fosscord-server/releases/download/v${{ steps.extract_version.outputs.version }}/fosscord-server-windows.exe)
+            - [Windows](https://github.com/fosscord/fosscord-server/releases/download/v${{ steps.extract_version.outputs.version }}/fosscord-server-windows.exe)
 
-					  - [MacOS](https://github.com/fosscord/fosscord-server/releases/download/v${{ steps.extract_version.outputs.version }}/fosscord-server-macos.app.tgz)
+            - [MacOS](https://github.com/fosscord/fosscord-server/releases/download/v${{ steps.extract_version.outputs.version }}/fosscord-server-macos.app.tgz)
 
-					  - [Linux](https://github.com/fosscord/fosscord-server/releases/download/v${{ steps.extract_version.outputs.version }}/fosscord-server-linux.tgz)
+            - [Linux](https://github.com/fosscord/fosscord-server/releases/download/v${{ steps.extract_version.outputs.version }}/fosscord-server-linux.tgz)
 
-			- 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-windows.exe
-				  asset_name: fosscord-server-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.app.tgz
-				  asset_name: fosscord-server-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.tgz
-				  asset_name: fosscord-server-linux.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-windows.exe
+          asset_name: fosscord-server-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.app.tgz
+          asset_name: fosscord-server-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.tgz
+          asset_name: fosscord-server-linux.tgz
+          asset_content_type: application/gzip