ACQUI-120: Make settings permission dependent #7
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: hub release create ${{ env.VERSION }} -m ${{ env.VERSION }} -a ${{ env.FILENAME }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |