Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
malys authored Jan 12, 2025
1 parent db79f69 commit 2e32b51
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 2e32b51

Please sign in to comment.