Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed Jan 16, 2025
1 parent 50ced2e commit cd18b7b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-22.04

steps:
- id: get-version
uses: battila7/get-version-action@v2

- uses: actions/checkout@v3
with:
submodules: true

- id: release-asset
run: |
version=${{ steps.get-version.outputs.version-without-v }}
cd ..
cp -r lua-ffi lua-ffi-$version
rm -rf lua-ffi-$version/.git*
tar zcfv lua-ffi-$version.tar.gz lua-ffi-$version
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
prerelease: false
files: ../lua-ffi-*.tar.gz

0 comments on commit cd18b7b

Please sign in to comment.