Skip to content

Commit

Permalink
Fix release workflow (#102)
Browse files Browse the repository at this point in the history
The release workflow does not support the latest actions to upload and
download artifacts. These require unique names for artifacts, which
breaks the release process.
  • Loading branch information
jdno authored Dec 21, 2023
1 parent deb9a42 commit afd3947
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
cat dist-manifest.json
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist-manifest.json
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
run: ${{ matrix.install_dist }}
# Get the dist-manifest
- name: Fetch local artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: artifacts
path: target/distrib/
Expand All @@ -140,7 +140,7 @@ jobs:
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
Expand All @@ -165,7 +165,7 @@ jobs:
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.6.0/cargo-dist-installer.sh | sh"
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
- name: Fetch local artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: artifacts
path: target/distrib/
Expand All @@ -182,7 +182,7 @@ jobs:
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.6.0/cargo-dist-installer.sh | sh"
# Fetch artifacts from scratch-storage
- name: Fetch artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: artifacts
path: target/distrib/
Expand All @@ -223,7 +223,7 @@ jobs:
cat dist-manifest.json
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist-manifest.json
Expand All @@ -246,7 +246,7 @@ jobs:
with:
submodules: recursive
- name: "Download Github Artifacts"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: artifacts
path: artifacts
Expand Down

0 comments on commit afd3947

Please sign in to comment.