ProxySwitcher/.github/workflows/release.yml

26 lines
527 B
YAML

name: Release
on:
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ProxySwitcher
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.event.workflow_run.head_ref }}" \
--title "Release ${{ github.event.workflow_run.head_ref }}" \
ProxySwitcher