diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 12:58:18 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 12:58:18 +0200 |
commit | 0802d5e6a849c822b7225423c8b20a38763ff45f (patch) | |
tree | 243de9b7ba8d54c94d8471dd4ac2ebf1293f1707 /.github | |
parent | :sparkles: docker compose (diff) | |
download | server-0802d5e6a849c822b7225423c8b20a38763ff45f.tar.xz |
:sparkles: server bundle
Diffstat (limited to '.github')
-rw-r--r-- | .github/FUNDING.yml | 1 | ||||
-rw-r--r-- | .github/workflows/release.yml | 99 |
2 files changed, 100 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..f76b9015 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +open_collective: fosscord \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..b0a31780 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,99 @@ +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 + +name: Publish Release + +jobs: + insiders-build: + strategy: + matrix: + os: [windows, macos, ubuntu] + include: + - os: windows + build: npm run bundle:windows + artifact: fosscord-server-windows.exe + - os: macos + build: npm run bundle:macos + artifact: fosscord-server-macos.app.tgz + - os: ubuntu + build: npm run bundle:linux + artifact: fosscord-server-linux.tgz + runs-on: ${{ matrix.os }}-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + - run: npm install + env: + MONGOMS_VERSION: 4.4.3 + - run: npm run build + - run: ${{ matrix.build }} + - uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.artifact }} + path: ${{ 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 + - 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) + + - [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) + + - 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 \ No newline at end of file |