Skip to content

Commit

Permalink
Update cross_comp_ubuntu.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RGGH authored Nov 13, 2024
1 parent 1c6522b commit cd8bfac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/cross_comp_ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -40,12 +49,15 @@ 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 }}

- name: Upload release assets
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 }}

0 comments on commit cd8bfac

Please sign in to comment.