Skip to content

Commit

Permalink
bak
Browse files Browse the repository at this point in the history
  • Loading branch information
timzaak committed Jul 4, 2024
1 parent d532676 commit e60e19f
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/spa-client-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
name: spa-client release

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -44,4 +41,12 @@ jobs:
with:
path: ./release/*
name: ${{ matrix.settings.name }}
if-no-files-found: error
if-no-files-found: error

- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: spa-client*
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
draft: true
49 changes: 46 additions & 3 deletions .github/workflows/spa-server-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: spa-server-docker release
name: spa-server release

on:
push:
Expand All @@ -8,6 +8,42 @@ env:
REGISTRY: ghcr.io

jobs:
client:
strategy:
fail-fast: false
matrix:
settings:
- os: ubuntu-latest
name: linux-spa-client
bash: make release-linux-client-musl
- os: macos-latest
name: mac-spa-client
bash: make release-client-mac
- os: windows-latest
name: windows-spa-client
bash: make release-client-win
runs-on: ${{ matrix.settings.os }}
steps:
- name: Get version
uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Setup MUSL
if: matrix.settings.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Build Release
run: ${{ matrix.settings.bash }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: ./release/*
name: ${{ matrix.settings.name }}
if-no-files-found: error
docker:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -59,5 +95,12 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: ./release/*
name: spa-server-linux
if-no-files-found: error
name: spa-server-linux-musl
if-no-files-found: error
- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: spa-server-*
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
draft: true
1 change: 1 addition & 0 deletions .github/workflows/spa-server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
check_server:
- 'client/**'
- 'server/**'
- 'Cargo.lock'
check_js_sdk:
- 'jsclient/**'
Expand Down
3 changes: 1 addition & 2 deletions docs/develop/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

- improve: extract client and server common entity
- conf: **break change** remove hocon config
- ci: add js client build ci
- ci: add js client build ci, improve release cd
- improve: clean deps, update claps

### Version 2.3.0
Expand All @@ -12,7 +12,6 @@
- feat: support host alias. add config `http.external_port`, `https.external_port`
- conf: **break change** `https.http_redirect_to_https` move to `http.redirect_https`, and value is bool.
- improve: improve change_status response text style (release JS SDK 2.3.0)
- improve: clean deps, update clap

### Version 2.2.4

Expand Down

0 comments on commit e60e19f

Please sign in to comment.