Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Dec 24, 2023
1 parent e1a3f12 commit fb42945
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: build
on:
push:
branches: ["*"]
tags: ["*"]
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -39,21 +40,24 @@ jobs:
publish:
needs: build
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' || github.ref_type == 'tag' }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Zip files
run: zip -r menu.zip menu
- uses: rickstaa/action-create-tag@v1
if: ${{ github.ref == 'refs/heads/main' }}
with:
tag: dev
force_push_tag: true
- uses: ncipollo/release-action@v1
with:
commit: ${{ github.sha }}
tag: dev
tag: ${{ github.ref == 'refs/heads/main' && 'dev' || github.ref_name }}
artifacts: "menu.zip"
allowUpdates: true
name: Latest build
body: Latest build
prerelease: ${{ github.ref == 'refs/heads/main' }}
name: ${{ github.ref == 'refs/heads/main' && 'dev' || github.ref_name }}
body: |
https://github.com/tsl0922/mpv-menu-plugin#installation
2 changes: 1 addition & 1 deletion src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ char *mp_expand_path(void *talloc_ctx, char *path) {
mpv_node node;
const char *args[] = {"expand-path", path, NULL};
if (mpv_command_ret(ctx->mpv, args, &node) >= 0) {
path = ta_strdup(talloc_ctx, node.u.string);
path = talloc_strdup(talloc_ctx, node.u.string);
mpv_free_node_contents(&node);
}
return path;
Expand Down

0 comments on commit fb42945

Please sign in to comment.