Merge pull request #16 from StarfishC/main #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "plugins/**" | |
workflow_dispatch: | |
jobs: | |
Build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Calculate the hash value | |
run: | | |
zip -r plugins.zip plugins | |
openssl dgst -sha256 plugins.zip | sed 's/([^)]*)//g' > version.txt | |
- name: Create Release and Upload Assets | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: version.txt | |
file_glob: true | |
tag: latest | |
release_name: latest | |
overwrite: true | |
draft: false | |
prerelease: false | |
body: "" |