Skip to content

Release

Release #19

Workflow file for this run

name: Release
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-13
defaults:
run:
working-directory: apps/core
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '^1.18' # The Go version to download (if necessary) and use.
- run: brew install FiloSottile/musl-cross/musl-cross
- run: brew install mingw-w64
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
- run: |
CI=false npm install
nx run xws:build:production
working-directory: .
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-mod-
- run: |
go mod tidy
make all -j 3
rm -f ${{ github.workspace }}/dist/apps/XWebStack/mac_arm.xpl ${{ github.workspace }}/dist/apps/XWebStack/mac_amd.xpl
cp -r ${{ github.workspace }}/dist/apps/xws ${{ github.workspace }}/dist/apps/XWebStack
echo "PORT=19090" > ${{ github.workspace }}/dist/apps/XWebStack/config
root=$(pwd)
cd ${{ github.workspace }}/dist/apps/ && zip -r xws.zip XWebStack && cd $root
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ${{ github.workspace }}/README.md
files: |
${{ github.workspace }}/dist/apps/xws.zip
prerelease: false