Skip to content

Commit

Permalink
chore: update github CI action script
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Jan 21, 2025
1 parent 36594b8 commit c33c0c9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
release:
types: [created]

jobs:
release:
concurrency:
group: release-${{ github.head_ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
submodules: "true"

- name: Upload
uses: actions/upload-artifact@v4
with:
name: ten_gn
path: ${{ github.workspace }}

- name: Package assets
if: startsWith(github.ref, 'refs/tags/')
run: |
zip -vr ten_gn.zip ${{ github.workspace }}
- name: Publish to release assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
ten_gn.zip

0 comments on commit c33c0c9

Please sign in to comment.