From 5a4c242401945bafe02565d7deb3cb1bb46b7c00 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Sun, 17 Mar 2024 13:41:59 +0800 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a465ae3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Publish my plugin + +on: + push: + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: tiddly-gittly/tw5-plugin-packer@v0.0.12 + with: + source: "TiddlyFlex" + output: "output" + - name: Upload to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: output/*.json + tag: ${{ env.RELEASE_VERSION }} + overwrite: true + file_glob: true