diff --git a/.github/workflows/cross_comp_ubuntu.yaml b/.github/workflows/cross_comp_ubuntu.yaml index fd66251..39485d6 100644 --- a/.github/workflows/cross_comp_ubuntu.yaml +++ b/.github/workflows/cross_comp_ubuntu.yaml @@ -29,6 +29,15 @@ jobs: - name: Build for Ubuntu Linux (x86_64) run: cross build --target x86_64-unknown-linux-gnu --release + - name: Create a new tag + id: tag + run: | + TAG="v$(date +'%Y%m%d%H%M%S')" # Example tag format: vYYYYMMDDHHMMSS + git tag $TAG + git push origin $TAG + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload artifact for Ubuntu Linux uses: actions/upload-artifact@v3 with: @@ -40,6 +49,7 @@ jobs: uses: softprops/action-gh-release@v1 with: files: target/x86_64-unknown-linux-gnu/release/mif + tag_name: ${{ steps.tag.outputs.TAG }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -47,5 +57,7 @@ jobs: uses: softprops/action-gh-release@v1 with: files: target/x86_64-unknown-linux-gnu/release/mif + tag_name: ${{ steps.tag.outputs.TAG }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +