Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
D074360 authored Jan 13, 2025
1 parent 41651a5 commit cb9aec6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Create Release Package

on:
push:
tags:
- 'v*' # Run workflow on version tags

jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create Release Archive
run: git archive --format=zip --output=release.zip HEAD

- name: Upload Release Archive
uses: actions/upload-artifact@v3
with:
name: release-archive
path: release.zip

- name: Publish Release
uses: softprops/action-gh-release@v1
with:
files: release.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cb9aec6

Please sign in to comment.