SHA256
fixing release_build action.
This commit is contained in:
@@ -18,18 +18,17 @@ jobs:
|
|||||||
# If triggered manually, use the input tag.
|
# If triggered manually, use the input tag.
|
||||||
# If triggered by push, GITHUB_REF_NAME is the tag.
|
# If triggered by push, GITHUB_REF_NAME is the tag.
|
||||||
ref: ${{ inputs.tag_name || gitea.ref_name }}
|
ref: ${{ inputs.tag_name || gitea.ref_name }}
|
||||||
fetch-depth: 0 # Fetch all history for all tags
|
|
||||||
|
|
||||||
- name: Verify Version
|
# - name: Verify Version
|
||||||
run: |
|
# run: |
|
||||||
TAG=${{ inputs.tag_name || gitea.ref_name }}
|
# TAG=${{ inputs.tag_name || gitea.ref_name }}
|
||||||
CARGO_VERSION=$(grep '^version = ' Cargo.toml | head -1 | cut -d'"' -f2)
|
# CARGO_VERSION=$(grep '^version = ' Cargo.toml | head -1 | cut -d'"' -f2)
|
||||||
echo "Building tag: $TAG"
|
# echo "Building tag: $TAG"
|
||||||
echo "Cargo.toml version: $CARGO_VERSION"
|
# echo "Cargo.toml version: $CARGO_VERSION"
|
||||||
# Optional: Fail if tag doesn't match Cargo.toml
|
# # Optional: Fail if tag doesn't match Cargo.toml
|
||||||
if [ "v$CARGO_VERSION" != "$TAG" ]; then
|
# if [ "v$CARGO_VERSION" != "$TAG" ]; then
|
||||||
echo "::warning::Tag ($TAG) does not match Cargo.toml version (v$CARGO_VERSION)"
|
# echo "::warning::Tag ($TAG) does not match Cargo.toml version (v$CARGO_VERSION)"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
@@ -41,11 +40,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: nyanit-${{ inputs.tag_name || gitea.ref_name }}
|
name: nyanit-${{ inputs.tag_name || gitea.ref_name }}
|
||||||
path: target/release/
|
path: target/release/nyanit
|
||||||
|
|
||||||
- name: Upload Release Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: rust-app-${{ inputs.version }}
|
|
||||||
path: target/release/
|
|
||||||
retention-days: 30
|
|
||||||
|
|||||||
Reference in New Issue
Block a user