mirror of
https://github.com/samuele-cozzi/obsidian-marp-slides.git
synced 2026-07-22 07:40:25 +00:00
feat: enhance github action
This commit is contained in:
parent
a7f1276365
commit
298ec00a87
1 changed files with 3 additions and 13 deletions
16
.github/workflows/release-please.yml
vendored
16
.github/workflows/release-please.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
tag_name: ${{ steps.release.outputs.tag_name }}
|
||||
upload_url: ${{ steps.release.outputs.upload_url }}
|
||||
|
||||
update-version:
|
||||
release-plugin:
|
||||
needs: release-please
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
|
|
@ -59,12 +59,7 @@ jobs:
|
|||
with:
|
||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
branch: main
|
||||
|
||||
build-plugin:
|
||||
needs: update-version
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
steps:
|
||||
|
||||
- name: Build
|
||||
id: build
|
||||
run: |
|
||||
|
|
@ -75,12 +70,7 @@ jobs:
|
|||
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
|
||||
ls
|
||||
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
|
||||
|
||||
release-plugin:
|
||||
needs: build-plugin
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
steps:
|
||||
|
||||
- name: Upload zip file
|
||||
id: upload-zip
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
|
|
|||
Loading…
Reference in a new issue