diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0bccada..bc952d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,8 +27,15 @@ jobs: - name: Build with Maven run: mvn -B clean package + - name: Set release tag to current datetime + id: datetime + run: | + TAG_NAME="$(date -u '+%Y%m%d')" + echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT + - name: Create Release uses: https://git.oryfox.de/actions/gitea-release-action@v1 with: files: target/inventory-tools.jar - token: ${{ secrets.REPOSITORY_TOKEN }} \ No newline at end of file + token: ${{ secrets.REPOSITORY_TOKEN }} + tag_name: ${{ steps.datetime.outputs.TAG_NAME }} \ No newline at end of file