From 1d2fd5271566f2af367d86fcd15a734706419f72 Mon Sep 17 00:00:00 2001 From: sstent Date: Sun, 15 Feb 2026 14:47:33 +0000 Subject: [PATCH] Add .github/workflows/publish.yml --- .github/workflows/publish.yml | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3b112a8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,51 @@ +name: Publish +on: + push: + branches: main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Install Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 23 + + - name: Install dependencies + run: | + cd editor + npm install + + - name: Build editor + run: | + cd editor + npm run build + + - name: Build step + run: "deno task build" + + - name: Update release tag + uses: rickstaa/action-create-tag@v1 + with: + tag: "edge" + force_push_tag: true + + - name: Release + uses: softprops/action-gh-release@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: false + tag_name: edge + body: Automated build from commit ${{ github.sha }} + files: | + excalidraw.plug.js \ No newline at end of file