Skip to content

trying some things for the release-action #4

trying some things for the release-action

trying some things for the release-action #4

name: Build & Publish Extension
on:
push:
branches: ["main"]
jobs:
build-retool-embedder:
name: Build Retool Embedder Chrome Extension
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Build Extension
run: |-
npm ci
npm run build
zip -r retool-embedder-${{ github.event.head_commit.id }}.zip build
- name: Archive retool-embedder Artifact
uses: actions/upload-artifact@v4
with:
name: retool-embedder-${{ github.sha }}
path: retool-embedder-${{ github.event.head_commit.id }}.zip
- name: Archive retool-embedder Artifact
uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.head_commit.id }}
commit: "main"
artifacts: "retool-embedder-${{ github.event.head_commit.id }}.zip"
body: "# Retool Embedder CI Build\n## retool-embedder-${{ github.event.head_commit.id }}.zip"