Skip to content

Commit

Permalink
Merge pull request #54 from nichuanfang/dev
Browse files Browse the repository at this point in the history
1
  • Loading branch information
nichuanfang authored Jul 9, 2024
2 parents c8b2457 + 205f595 commit c06cebb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/update_dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
packages: write
steps:
# 克隆代码仓库
- name: Checkout code
Expand All @@ -41,6 +41,14 @@ jobs:
git push
fi
- name: release-drafter
id: release-drafter
uses: release-drafter/release-drafter@v6
with:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# 获取并安装 um.exe
# - name: Update um.exe
# run: |
Expand All @@ -54,6 +62,7 @@ jobs:
env:
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
YT_DLP_VERSION: ${{steps.release-drafter.outputs.tag_name}}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
14 changes: 7 additions & 7 deletions .github/workflows/update_release_draft.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: update_release_draft.yml

on:
push:
branches:
- main
# push:
# branches:
# - main
pull_request:
types: [ opened, reopened, synchronize ]
types: [opened, reopened, synchronize]

permissions:
contents: write
Expand All @@ -15,10 +15,10 @@ jobs:
#更新草稿
update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c06cebb

Please sign in to comment.