Skip to content

Commit

Permalink
Add Python
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrlambda committed Oct 12, 2023
1 parent dab7fd3 commit e4d04d1
Show file tree
Hide file tree
Showing 9 changed files with 2,726 additions and 117 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: publish
on:
push:
branch:
- "release"

jobs:
publish:
- name: build
run: |
npm ci
tsc
- name: version
run: cat package.json | jq -r '.version'
id: version
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: v${{ steps.version.outputs.version }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: build artifacts
run: npm run pack
- name: upload linux artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/mm-linux
asset_name: Merrymake CLI for Linux
asset_content_type: application/octet-stream
- name: upload macos artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/mm-macos
asset_name: Merrymake CLI for MacOS
asset_content_type: application/octet-stream
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/mm-win.exe
asset_name: Merrymake CLI for Windows
asset_content_type: application/octet-stream
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
Loading

0 comments on commit e4d04d1

Please sign in to comment.