Skip to content

Commit

Permalink
Merge pull request #116 from Hossein-Mirazimi/feat/usage-github-link
Browse files Browse the repository at this point in the history
WIP: feat(ci): add github action to make release
  • Loading branch information
a-mehrabi authored Nov 24, 2024
2 parents d66d32f + b6f2032 commit 8283c14
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: yarn

- name: Build project
run: yarn build

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

- name: Upload Bundled Files
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist
asset_name: vue-calendar.zip
asset_content_type: application/zip

0 comments on commit 8283c14

Please sign in to comment.