From fd0be6b6fbe6644071dea789e79ca59c728b7ed9 Mon Sep 17 00:00:00 2001 From: dianhsu <50162344+dianhsu@users.noreply.github.com> Date: Tue, 6 Aug 2024 02:10:56 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 323e672..42cfa7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,16 +15,16 @@ jobs: new_tag: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@master with: fetch-depth: 0 - - uses: SebRollen/toml-action@v1.0.2 + - uses: SebRollen/toml-action@main id: read_toml with: file: 'Cargo.toml' field: 'package.version' - - uses: rickstaa/action-create-tag@v1 + - uses: rickstaa/action-create-tag@master id: "tag_create" with: tag: "${{ steps.read_toml.outputs.value }}" @@ -65,7 +65,7 @@ jobs: dist: ccs-macos-aarch64.zip runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main - name: Install Rust uses: actions-rust-lang/setup-rust-toolchain@v1 with: @@ -95,7 +95,7 @@ jobs: run: powershell Compress-Archive -Path ${{ matrix.output }} -DestinationPath ${{ matrix.dist }} - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: my-artifact path: ${{ matrix.dist }} @@ -106,20 +106,20 @@ jobs: - build - new_tag steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main with: ref: ${{ needs.new_tag.outputs.tag_name }} - name: Show tags run: git tag -l - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@main with: name: my-artifact path: artifacts - name: Display structure of downloaded files run: ls -al artifacts - name: Create release - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@main with: artifacts: artifacts/* token: ${{ secrets.GITHUB_TOKEN }}