Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add github cicd #6

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: deploy

on:
push:
tags:
- "v*"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Check Node v
run: node -v
- name: Install Dependencies
run: npm ci
- name: Run build
run: npm run build
- name: Zip target
run: tar -czvf dist.tar.gz dist
- name: Deploy to Package
uses: ncipollo/release-action@v1
with:
artifacts: "*.gz"
token: ${{ github.token }}
generateReleaseNotes: true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"scripts": {
"serve": "npx parcel --target serve --dist-dir dist --host 0.0.0.0 --port 2345 --no-cache --no-hmr",
"lint": "npx eslint . --ext .ts",
"prettier": "npx prettier --write ."
"prettier": "npx prettier --write .",
"build": "npx parcel build --target serve --dist-dir dist"
},
"engines": {
"node": ">=18.15.0"
Expand Down