Modify action.
This commit is contained in:
parent
20dea0661c
commit
dbfb1272ca
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
@ -6,13 +6,7 @@ env:
|
|||||||
PLUGIN_NAME: logseq-plugin-favorite-tree
|
PLUGIN_NAME: logseq-plugin-favorite-tree
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "*" # Push events to matching any tag format, i.e. 1.0, 20.15.10
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@ -43,25 +37,9 @@ jobs:
|
|||||||
ls
|
ls
|
||||||
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
|
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
id: create_release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
VERSION: ${{ github.ref }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: ${{ github.ref }}
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload zip file
|
- name: Upload zip file
|
||||||
id: upload_zip
|
id: upload_zip
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-artifact@v4
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
name: ${{ env.PLUGIN_NAME }}
|
||||||
asset_path: ./${{ env.PLUGIN_NAME }}.zip
|
path: ./${{ env.PLUGIN_NAME }}.zip
|
||||||
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user