diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7e65534..77e865c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,11 +15,9 @@ jobs: - uses: actions/checkout@v3 - name: Install stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Build cargo-valgrind run: | @@ -29,8 +27,8 @@ jobs: shell: bash id: tagName run: | - VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2) - echo "::set-output name=tag::$VERSION" + VERSION=$(cargo pkgid | cut -d# -f2) + echo "tag=$VERSION" >> $GITHUB_OUTPUT - name: Build package id: package @@ -40,8 +38,8 @@ jobs: ARCHIVE_NAME="cargo-valgrind-${{ steps.tagName.outputs.tag }}-$ARCHIVE_TARGET" ARCHIVE_FILE="${ARCHIVE_NAME}.zip" 7z a ${ARCHIVE_FILE} ./target/release/cargo-valgrind.exe - echo "::set-output name=file::${ARCHIVE_FILE}" - echo "::set-output name=name::${ARCHIVE_NAME}.zip" + echo "file=$ARCHIVE_FILE" >> $GITHUB_OUTPUT + echo "name=$ARCHIVE_NAME.zip" >> $GITHUB_OUTPUT - name: Upload artifacts uses: actions/upload-artifact@v2 @@ -65,13 +63,11 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install Rust - uses: actions-rs/toolchain@v1 + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable target: ${{ matrix.target }} - override: true - name: Install musl if: contains(matrix.target, 'linux-musl') @@ -91,8 +87,8 @@ jobs: - name: Get the version id: tagName run: | - VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2) - echo "::set-output name=tag::$VERSION" + VERSION=$(cargo pkgid | cut -d# -f2) + echo "tag=$VERSION" >> $GITHUB_OUTPUT - name: Build package id: package @@ -100,8 +96,8 @@ jobs: TAR_FILE=cargo-valgrind-${{ steps.tagName.outputs.tag }}-${{ matrix.target }} cd target/${{ matrix.target }}/release tar -czvf $GITHUB_WORKSPACE/$TAR_FILE.tar.gz cargo-valgrind - echo ::set-output "name=name::${TAR_FILE}" - echo ::set-output "name=file::${TAR_FILE}.tar.gz " + echo "name=$TAR_FILE" >> $GITHUB_OUTPUT + echo "file=$TAR_FILE.tar.gz" >> $GITHUB_OUTPUT - name: Upload artifacts uses: actions/upload-artifact@v2 @@ -120,11 +116,9 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Create Cargo.lock run: | @@ -133,8 +127,8 @@ jobs: - name: Get version id: tagName run: | - VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2) - echo "::set-output name=tag::$VERSION" + VERSION=$(cargo pkgid | cut -d# -f2) + echo "tag=$VERSION" >> $GITHUB_OUTPUT - name: Download artifacts uses: actions/download-artifact@v2