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 }}