diff options
| -rw-r--r-- | .github/workflows/publish.yml | 55 |
1 files changed, 25 insertions, 30 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b691e10..61bdeda 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,36 +1,31 @@ -# This is a basic workflow to help you get started with Actions - -name: Releases - -env: - PLUGIN_NAME: ollama-logseq - -# Controls when the action will run. +name: Release on: - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel + push: + branches: + - main jobs: - release: - # The type of runner that the job will run on + build: runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 with: - node-version: "18" - - uses: pnpm/action-setup@v2.2.1 + node-version: 18 + + - name: Install dependencies + run: pnpm install + + - name: Build the project + run: pnpm build + + - name: Create a release zip file + run: zip -r my-react-project.zip build/ + + - name: Upload release artifact + uses: actions/upload-artifact@v2 with: - version: 6.0.2 - - run: pnpm install - - run: pnpm build - - name: Install zip - uses: montudor/action-zip@v1 - - name: Release - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GTOKEN }} + name: ollama-logseq + path: ollama-logseq.zip |
