chore: Update github actions to use gh-cli isntead of hub #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Release Asset | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
name: Create Release and upload .kpz file | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Version | |
run: | | |
VERSION=$(node checkVersionNumber.js version) | |
FILENAME=$(node checkVersionNumber.js filename) | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
echo "FILENAME=$FILENAME" >> $GITHUB_ENV | |
- name: 'Create Release' | |
run: gh release create ${{ env.VERSION }} ${{ env.FILENAME }} -t ${{ env.VERSION }} -n "" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |