Browse Source

build-and-release.yml:解决只发布了 node17 打包的安装包的问题

pull/366/head
王良 2 months ago
parent
commit
f32cabd40f
  1. 40
      .github/workflows/build-and-release.yml

40
.github/workflows/build-and-release.yml

@ -184,46 +184,61 @@ jobs:
- name: "Make 'release' dir" - name: "Make 'release' dir"
run: mkdir release run: mkdir release
# Download artifacts with node16
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.exe - Windows" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.exe - Windows"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.exe name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.exe
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.exe - Windows" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.deb - Ubuntu"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.exe name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.deb
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.deb - Ubuntu" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.AppImage - Ubuntu"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.deb name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.AppImage
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.deb - Ubuntu" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.dmg - Mac"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.deb name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.dmg
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.AppImage - Ubuntu" - name: "Rename 'release/DevSidecar-${{ steps.package-info.outputs.version }}.*' to 'release/DevSidecar-${{ steps.package-info.outputs.version }}-node16.*'"
run: |
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.exe release/DevSidecar-${{ steps.package-info.outputs.version }}-node16.exe;
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.deb release/DevSidecar-${{ steps.package-info.outputs.version }}-node16.deb;
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.AppImage release/DevSidecar-${{ steps.package-info.outputs.version }}-node16.AppImage;
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.dmg release/DevSidecar-${{ steps.package-info.outputs.version }}-node16.dmg;
# Download artifacts with node17
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.exe - Windows"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.AppImage name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.exe
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.AppImage - Ubuntu" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.deb - Ubuntu"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.AppImage name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.deb
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node16.dmg - Mac" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.AppImage - Ubuntu"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node16.dmg name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.AppImage
path: release path: release
- name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.dmg - Mac" - name: "Download DevSidecar-${{ steps.package-info.outputs.version }}-node17.dmg - Mac"
uses: actions/download-artifact@v4.1.8 uses: actions/download-artifact@v4.1.8
with: with:
name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.dmg name: DevSidecar-${{ steps.package-info.outputs.version }}-node17.dmg
path: release path: release
- name: "Rename 'release/DevSidecar-${{ steps.package-info.outputs.version }}.*' to 'release/DevSidecar-${{ steps.package-info.outputs.version }}-node17.*'"
run: |
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.exe release/DevSidecar-${{ steps.package-info.outputs.version }}-node17.exe;
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.deb release/DevSidecar-${{ steps.package-info.outputs.version }}-node17.deb;
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.AppImage release/DevSidecar-${{ steps.package-info.outputs.version }}-node17.AppImage;
mv release/DevSidecar-${{ steps.package-info.outputs.version }}.dmg release/DevSidecar-${{ steps.package-info.outputs.version }}-node17.dmg;
- name: "Print files from 'release' dir" - name: "Print files from 'release' dir"
run: | run: |
@ -231,7 +246,6 @@ jobs:
- name: "Create a draft release" - name: "Create a draft release"
uses: fnkr/github-action-ghr@ghr-options uses: fnkr/github-action-ghr@ghr-options
if: ${{ github.ref_type == 'tag' }}
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
GHR_PATH: release/ GHR_PATH: release/

Loading…
Cancel
Save