Merge pull request #336 from minvws/health-sys #46
Workflow file for this run
This file contains hidden or 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: Create release package | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Set env | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV && | |
| echo "PKG_NAME=`basename $GITHUB_REPOSITORY -private`" >> $GITHUB_ENV | |
| - uses: actions/checkout@v7 | |
| - name: Add version file | |
| run: 'echo "{ \"version\": \"${{ env.RELEASE_VERSION }}\", \"git_ref\": \"$GITHUB_SHA\"}" > version.json' | |
| - name: Create tar | |
| run: tar -czf ${{ env.PKG_NAME }}_${{ env.RELEASE_VERSION }}.tar.gz app tools ./version.json | |
| - name: Upload release tar | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ env.PKG_NAME }}_${{ env.RELEASE_VERSION }} | |
| path: ${{ env.PKG_NAME }}_${{ env.RELEASE_VERSION }}.tar.gz |