From 2e32b518f5f5f529e6debc4e46607efd895fc3a9 Mon Sep 17 00:00:00 2001 From: Malys Date: Sun, 12 Jan 2025 13:43:43 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ffd2224..4749411 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,32 +4,19 @@ on: push: tags: - '*' - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: - + jobs: create-release: name: Create Release runs-on: ubuntu-latest + permissions: + contents: write steps: - - name: Checkout code - uses: actions/checkout@master - - name: Create Release - id: create_release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: mindmap.plug.js - asset_name: "mindmap plug" - tag: ${{ github.ref }} - overwrite: true - body: "Mindmap plug version: ${{ github.ref }}" + allowUpdates: false + artifactErrorsFailBuild: true + artifacts: "mindmap.plug.js" + name: ${{ github.ref }}