Skip to content

Commit

Permalink
Create build-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mastafit authored Dec 28, 2023
1 parent f1a96de commit 3c1b4da
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and Release

on:
push:
branches:
- issue-#12
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Post Build
run: npm run postbuild

- name: Build Binaries
run: npm run build:binaries

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/seam.cjs
asset_name: seam-cli
asset_content_type: application/octet-stream

0 comments on commit 3c1b4da

Please sign in to comment.