Skip to content

Commit

Permalink
feat: 修改ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yaobiao131 committed Dec 17, 2023
1 parent 2c75677 commit 575069e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build

permissions:
contents: write

on:
push:
branches:
Expand Down Expand Up @@ -60,12 +63,15 @@ jobs:
- kind: AppImage
cpu: x64
package-tail: .x86_64
package-head: DownKyi-
- kind: deb
cpu: x64
package-tail: .x86_64
package-tail: _amd64
package-head: DownKyi_
- kind: rpm
cpu: x64
package-tail: .x86_64
package-head: DownKyi_
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -98,14 +104,18 @@ jobs:
- name: Upload build artifacts ${{ matrix.kind }}
uses: actions/upload-artifact@v3
with:
name: DownKyi-${{ steps.version.outputs.content }}-1.${{ matrix.package-tail }}.${{ matrix.kind }}
path: script/pupnet/output/DownKyi-${{ steps.version.outputs.content }}-1.${{ matrix.package-tail }}.${{ matrix.kind }}
name: ${{ matrix.package-head }}${{ steps.version.outputs.content }}_linux_${{ matrix.package-tail }}.${{ matrix.kind }}
path: script/pupnet/output/${{ matrix.package-head }}${{ steps.version.outputs.content }}-1${{ matrix.package-tail }}.${{ matrix.kind }}
- name: Change Name
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: mv "${{ matrix.package-head }}${{ steps.version.outputs.content }}-1${{ matrix.package-tail }}.${{ matrix.kind }}" "${{ matrix.package-head }}${{ steps.version.outputs.content }}_linux_${{ matrix.package-tail }}.${{ matrix.kind }}"
working-directory: ./script/pupnet/output/
- name: Release
uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
allowUpdates: true
artifacts: script/pupnet/output/DownKyi-${{ steps.version.outputs.content }}-1.${{ matrix.package-tail }}.${{ matrix.kind }}
artifacts: script/pupnet/output/${{ matrix.package-head }}${{ steps.version.outputs.content }}_linux_${{ matrix.package-tail }}.${{ matrix.kind }}
build-macos:
runs-on: macos-latest
strategy:
Expand Down

0 comments on commit 575069e

Please sign in to comment.