Skip to content

Commit

Permalink
ci: fix doc links and windows setup release
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 committed Jan 27, 2025
1 parent 22b2733 commit a57f392
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
PFX_PASSWORD: ${{ secrets.PFX_PASSWORD }}
PFX_BASE64_CONTENT: ${{ secrets.PFX_BASE64_CONTENT }}
PFX_PATH: C://oibus.pfx
if: ${{ matrix.config['platform'] == 'win' }}
if: ${{ matrix.config['platform'] == 'win-x64' }}
shell: pwsh
working-directory: ./backend
run: |
Expand All @@ -114,15 +114,15 @@ jobs:
Remove-Item -Path "$env:PFX_PATH";
- name: Rename windows installer
if: ${{ matrix.config['platform'] == 'win' }}
run: mv ./build/bin/win-setup-release/oibus-setup.exe ./build/bin/win-setup-release/oibus-setup-win_x64-${{ github.ref_name }}.exe
if: ${{ matrix.config['platform'] == 'win-x64' }}
run: mv ./build/bin/win-setup-release/oibus-setup.exe ./build/bin/win-setup-release/${{ matrix.config['archiveName'] }}-setup-${{ github.ref_name }}.exe

- name: Upload Windows installer Artifact ${{ matrix.config['archiveName'] }}
if: ${{ matrix.config['platform'] == 'win' }}
if: ${{ matrix.config['platform'] == 'win-x64' }}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
run:
gh release upload ${{ github.ref_name }} ./build/bin/win-setup-release/oibus-setup-win_x64-${{ github.ref_name }}.exe
gh release upload ${{ github.ref_name }} ./build/bin/win-setup-release/${{ matrix.config['archiveName'] }}-setup-${{ github.ref_name }}.exe

outputs:
release_name: ${{ steps.release_info.outputs.release_name }}
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/guide/installation/_macos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import packageInfo from '../../../package.json'
</DownloadButton>
<DownloadButton link={`https://github.com/OptimistikSAS/OIBus/releases/download/v${packageInfo.version}/oibus-macos_arm64-v${packageInfo.version}.zip`}>
<div>
<div>{`OIBus v${packageInfo.version} (zip)`}</div>
<div>{`OIBus v${packageInfo.version}`}</div>
<div>MacOS (ARM 64)</div>
</div>
</DownloadButton>
Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/guide/installation/_windows.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import TabItem from '@theme/TabItem';
## Download
</div>
<div style={{ display: "flex", justifyContent: "space-around" }}>
<DownloadButton link={`https://github.com/OptimistikSAS/OIBus/releases/download/v${packageInfo.version}/oibus-setup-win_x64-v${packageInfo.version}.exe`}>
<DownloadButton link={`https://github.com/OptimistikSAS/OIBus/releases/download/v${packageInfo.version}/oibus-win_x64-setup-v${packageInfo.version}.exe`}>
<div>
<div>{`OIBus v${packageInfo.version} (installer)`}</div>
<div>{`OIBus v${packageInfo.version} (x64 installer)`}</div>
<div>Windows (x64)</div>
</div>
</DownloadButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ import packageInfo from '../../../../../../package.json'
<div>MacOS (Intel 芯片)</div>
</div>
</DownloadButton>
<DownloadButton link={`https://github.com/OptimistikSAS/OIBus/releases/download/v${packageInfo.version}/oibus-macos_arm64-v${packageInfo.version}.zip`}>
<div>
<div>{`OIBus v${packageInfo.version}`}</div>
<div>MacOS (ARM 64)</div>
</div>
</DownloadButton>
</div>

macOS OIBus 二进制文件可以通过其可执行文件运行。解压缩后,启动终端并输入以下命令:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import packageInfo from '../../../../../../package.json'
# Windows
## Download
<div style={{ display: "flex", justifyContent: "space-around" }}>
<DownloadButton link={`https://github.com/OptimistikSAS/OIBus/releases/download/v${packageInfo.version}/oibus-setup-win_x64-v${packageInfo.version}.exe`}>
<DownloadButton link={`https://github.com/OptimistikSAS/OIBus/releases/download/v${packageInfo.version}/oibus-win_x64-setup-v${packageInfo.version}.exe`}>
<div>
<div>{`OIBus v${packageInfo.version} (安装程序)`}</div>
<div>{`OIBus v${packageInfo.version} (x64 安装程序)`}</div>
<div>Windows (x64)</div>
</div>
</DownloadButton>
Expand Down

0 comments on commit a57f392

Please sign in to comment.