automated release #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: automated release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
required: true | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: create release | |
runs-on: ubuntu-latest | |
steps: | |
- name: download mpv | |
run: | | |
api=$(curl -s "https://api.github.com/repos/shinchiro/mpv-winbuild-cmake/releases/latest" | python -c "import sys, json; print(json.load(sys.stdin)['assets'][8]['browser_download_url'])") | |
echo "api url: $api" | |
curl -sL "$api" -o mpv.7z | |
7z x mpv.7z -ompv/ | |
- name: create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
tag: v${{ github.event.inputs.tag }} | |
run: | | |
gh release create "$tag" \ | |
--repo="$GITHUB_REPOSITORY" \ | |
--title="autobloom v${tag}" \ | |
--generate-notes |