Skip to content

Commit

Permalink
优选DNS服务器,自动更新hosts文件
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Oct 15, 2024
1 parent c77dbbb commit 5db57d5
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,38 @@ jobs:
name: ${{ matrix.platform }}-executables
path: dist/*

create-or-update-release:
create-release:
needs: build-and-release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3

- name: Delete existing release
uses: dev-drprasad/[email protected]
with:
tag_name: ${{ github.ref_name }}
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Update Release Assets
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: |
*-executables/*
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5db57d5

Please sign in to comment.