Вернул обратно pkg (yao-pkg) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LaunchServer - PreRelease Build | |
on: | |
push: | |
branches: [testing] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Get version value, set to env | |
run: echo "PACKAGE_VERSION=v$(node -p "require('./packages/server/package.json').version")" >> $GITHUB_ENV | |
- name: Download dependencies | |
run: npm сi | |
- name: Build Libraries | |
run: | | |
npm run build:libs | |
npm run build:prod -w packages/server | |
npm run build:bin -w packages/server | |
- name: Upload release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ env.PACKAGE_VERSION }} | |
name: Aurora LauncherServer ${{ env.PACKAGE_VERSION }} | |
prerelease: true | |
files: | | |
packages/server/dist/LauncherServer.js | |
packages/server/dist/LauncherServer-win.exe | |
packages/server/dist/LauncherServer-linux | |
packages/server/dist/LauncherServer-macos | |
- name: Upload new version to storage | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
REMOTE_HOST: ${{ secrets.SSH_SERVER_IP }} | |
REMOTE_USER: ${{ secrets.SSH_USER }} | |
REMOTE_PORT: ${{ secrets.SSH_SERVER_PORT }} | |
SOURCE: "packages/server/dist/" | |
TARGET: "${{ secrets.STORAGE_DIR }}/${{ env.PACKAGE_VERSION }}" |