Merge branch 'develop' #4
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: "Tag Release" | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
build_cfg: | |
runs-on: ubuntu-latest | |
outputs: | |
VERSION_STR: ${{ steps.config_step.outputs.VERSION_STR }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Create Version STR" | |
id: config_step | |
run: |- | |
VER_BUILD=$(date +%-H%M) | |
VERSION_STR="v$(date +%y).$(date +%-m).$(date +%-d)-${VER_BUILD:0:3}" | |
echo "VERSION_STR=${VERSION_STR}" >> $GITHUB_OUTPUT | |
- name: "Create Release" | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.config_step.outputs.VERSION_STR }} | |
release_name: ${{ steps.config_step.outputs.VERSION_STR }} | |
generate_release_notes: true | |
target_commitish: ${{ github.ref_name }} | |
build_node_app: | |
needs: [build_cfg] | |
name: "Build node tarball with tag [${{ needs.build_cfg.outputs.VERSION_STR }}]" | |
uses: ./.github/workflows/util-build-node-app.yml | |
secrets: inherit | |
with: | |
version_str: ${{ needs.build_cfg.outputs.VERSION_STR }} |