Skip to content

Commit

Permalink
ci: Upgrade actions/upload-artifact and actions/download-artifact to …
Browse files Browse the repository at this point in the history
…v4 (#934)
  • Loading branch information
alvicsam authored Nov 15, 2024
1 parent bca7b22 commit a919d3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-polkadot-for-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strip -s ./target/release/polkadot-execute-worker
- name: upload polkadot binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nightly-polkadot-binary
path: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
paths:
- 'staking-miner-playground/**'
- "staking-miner-playground/**"
# Allow it to be manually ran to rebuild binary when needed:
workflow_dispatch: {}
# Run at 22pm every week on Mondays for nightly builds.
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
strip -s ./target/release/staking-miner-playground
- name: upload staking-miner-playground binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: staking-miner-playground-binary
path: ./staking-miner-playground/target/release/staking-miner-playground
Expand Down
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
run: mv ./target/release/polkadot-staking-miner .

- name: Collect artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: |
Expand All @@ -158,18 +158,13 @@ jobs:
name: Test Docker image build
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
needs: [check-fmt,
check-clippy,
check-docs,
check-cargo-hack,
test,
build]
needs: [check-fmt, check-clippy, check-docs, check-cargo-hack, test, build]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./artifacts
Expand Down Expand Up @@ -197,18 +192,13 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' || github.ref_type == 'tag' }}
runs-on: ubuntu-latest
environment: main_and_tags
needs: [check-fmt,
check-clippy,
check-docs,
check-cargo-hack,
test,
build]
needs: [check-fmt, check-clippy, check-docs, check-cargo-hack, test, build]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./artifacts
Expand Down

0 comments on commit a919d3f

Please sign in to comment.