Skip to content

Commit

Permalink
github actions: test-and-upload.yml 中,移除 release 相关脚本。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Nov 15, 2024
1 parent 1a3918b commit c3d614c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: 'Build And Release'

on:
push:
branches:
- release
tags:
- '*'

Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/test-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ on:
push:
branches:
- master
- release
- '1.x'
pull_request:
branches:
- master

jobs:
# job 1
test-and-upload:
runs-on: ${{ matrix.os }}-latest
strategy:
Expand Down Expand Up @@ -135,57 +133,3 @@ jobs:
path: packages/gui/dist_electron/DevSidecar-${{ steps.package-info.outputs.version }}.dmg
name: 'DevSidecar-${{ steps.package-info.outputs.version }}.dmg'
if-no-files-found: error

# job 2
download-and-release:
if: ${{ github.ref_name == 'release' }}
runs-on: ubuntu-latest
needs:
- test-and-upload
steps:
- name: 'Checkout'
uses: actions/[email protected]

- name: 'Get package info'
id: package-info
uses: luizfelipelaviola/get-package-info@v1
with:
path: ./packages/mitmproxy

- name: 'Make "release" dir'
run: mkdir release

# Download artifacts
- name: 'Download DevSidecar-${{ steps.package-info.outputs.version }}.exe - Windows'
uses: actions/[email protected]
with:
name: DevSidecar-${{ steps.package-info.outputs.version }}.exe
path: release
- name: 'Download DevSidecar-${{ steps.package-info.outputs.version }}.deb - Ubuntu'
uses: actions/[email protected]
with:
name: DevSidecar-${{ steps.package-info.outputs.version }}.deb
path: release
- name: 'Download DevSidecar-${{ steps.package-info.outputs.version }}.AppImage - Ubuntu'
uses: actions/[email protected]
with:
name: DevSidecar-${{ steps.package-info.outputs.version }}.AppImage
path: release
- name: 'Download DevSidecar-${{ steps.package-info.outputs.version }}.dmg - Mac'
uses: actions/[email protected]
with:
name: DevSidecar-${{ steps.package-info.outputs.version }}.dmg
path: release

- name: 'Print files from "release" dir'
run: |
ls -lah release;
- name: 'Create a draft release'
uses: wangliang181230/github-action-ghr@master
env:
GITHUB_TOKEN: ${{ github.token }}
GHR_PATH: release/
GHR_TITLE: ${{ github.ref_name }}
GHR_REPLACE: true
GHR_DRAFT: true

0 comments on commit c3d614c

Please sign in to comment.