-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (45 loc) · 1.39 KB
/
Copy pathrelease.yml
File metadata and controls
54 lines (45 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: automated release
on:
push:
tags:
- 'v*.*'
workflow_dispatch:
inputs:
tag:
required: true
permissions:
contents: write
jobs:
debug:
name: debug ls
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: debug - ls
run: ls -l
- name: debug - ls (recursive)
run: ls -l -R
release:
name: create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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'][11]['browser_download_url'])")
echo "api url: $api"
curl -sL "$api" -o mpv.7z
7z x mpv.7z -ompv/
rm CODEOWNERS mpv.7z .gitignore README.md mpv/updater.bat
rm -r .git .github mpv/doc mpv/installer
- name: create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ github.event.inputs.tag || github.ref_name }}
run: |
zip -r autobloom-${tag}.zip .
echo "download autobloom from the 'autobloom-${tag}.zip' file below" | gh release create "$tag" \
autobloom-$tag.zip \
--repo="$GITHUB_REPOSITORY" \
--title="autobloom ${tag}" \
-F -