Skip to content

Commit

Permalink
Create release CI (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored Nov 23, 2023
1 parent 104bd6c commit 146e41f
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: Release

on:
push:
paths:
- '**/*.sdk/**'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare for release
run: |
for i in *.sdk; do
if [[ -d $i ]]; then
tar -cJvf $i.tar.xz $i && echo $(ls *.tar.xz)
fi
done
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG="${GITHUB_REF##*/}-${GITHUB_SHA:0:7}"
gh release create "$TAG" --draft --title "Draft Release"
gh release upload "$TAG" ./*.tar.xz

0 comments on commit 146e41f

Please sign in to comment.