Skip to content

Commit

Permalink
Merge pull request #76 from jumpserver/dev
Browse files Browse the repository at this point in the history
fix: 构建测试
  • Loading branch information
wojiushixiaobai authored Nov 19, 2024
2 parents ec3171e + ae51359 commit c383b40
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,43 @@ jobs:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential wine wine32
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get version
id: get_version
run: |
TAG=$(basename ${GITHUB_REF})
echo "TAG=${TAG}" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-name: release-config.yml
version: ${{ steps.get_version.outputs.TAG }}
tag: ${{ steps.get_version.outputs.TAG }}
- uses: actions/setup-node@v3

- uses: actions/setup-node@v4
with:
node-version: '20.12.2'
- name: Install Dependencies
run: |
yarn install
mkdir -p release
node-version: '20'

- name: Build
- name: Build Binary
run: |
yarn run build
mv release/JumpServer_Video_Player\ Setup${{ steps.get_version.outputs.TAG }}.exe release/JumpServerVideoPlayerSetup${{ steps.get_version.outputs.TAG }}.exe
mv release/JumpServer_Video_Player-${{ steps.get_version.outputs.TAG }}-arm64.dmg release/JumpServerVideoPlayer-${{ steps.get_version.outputs.TAG }}-arm64.dmg
mkdir -p release
yarn install
yarn build
ls -al release/
- name: Release Upload Assets
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
release/*.exe
release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.20-bullseye-slim as as stage-build
FROM node:20-bullseye-slim as as stage-build
ARG TARGETARCH

ARG DEPENDENCIES=" \
Expand Down

0 comments on commit c383b40

Please sign in to comment.