Skip to content

Commit

Permalink
Bump Github Actions versions (#913)
Browse files Browse the repository at this point in the history
Co-authored-by: François <[email protected]>
  • Loading branch information
BD103 and mockersf authored Feb 5, 2024
1 parent 4d1b6c1 commit 22c3414
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-wasm-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
steps:

- name: Checkout Bevy latest tag
uses: actions/checkout@master
uses: actions/checkout@v4
with:
repository: 'bevyengine/bevy'
ref: 'latest'

# temporary: fetch tools from main branch
- name: Checkout Bevy Tools
uses: actions/checkout@master
uses: actions/checkout@v4
with:
repository: 'bevyengine/bevy'
ref: 'main'
Expand All @@ -52,7 +52,7 @@ jobs:
cargo run -p example-showcase -- --per-page ${{ env.PER_PAGE }} --page ${{ matrix.page }} build-wasm-examples --content-folder wasm-examples --api ${{ matrix.api }} --website-hacks --optimize-size
- name: Upload Generated Files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.api }}-examples-${{ matrix.page }}
path: wasm-examples
Expand All @@ -67,7 +67,7 @@ jobs:
steps:

- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Group examples in one folder
run: |
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
needs: [markdownlint, test-code]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -30,7 +30,7 @@ jobs:
run: echo "::set-output name=key::$(date +'%Y-%m-%d')"

- name: Get crates.io datadump from cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: generate-assets/data
key: ${{ runner.os }}-${{ steps.cache-key.outputs.key }}
Expand All @@ -41,7 +41,7 @@ jobs:
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} &&
./generate_assets.sh
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: generated-assets
path: content/assets
Expand All @@ -51,9 +51,9 @@ jobs:
needs: [markdownlint, test-code]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -68,7 +68,7 @@ jobs:
cd generate-errors &&
./generate_errors.sh
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: generated-errors
path: content/learn/errors
Expand All @@ -78,14 +78,14 @@ jobs:
needs: [markdownlint, test-code]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: "Clone Bevy"
run: >
cd generate-wasm-examples &&
./clone_bevy.sh
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -105,13 +105,13 @@ jobs:
cd generate-wasm-examples &&
./generate_wasm_examples.sh
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: generated-wasm-examples
path: content/examples
retention-days: 1

- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: generated-wasm-examples-webgpu
path: content/examples-webgpu
Expand All @@ -121,9 +121,9 @@ jobs:
needs: [markdownlint, test-code]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -138,7 +138,7 @@ jobs:
cd generate-community &&
./generate_community.sh
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: generated-community
path: content/community/people
Expand All @@ -147,7 +147,7 @@ jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
Expand All @@ -161,7 +161,7 @@ jobs:
test-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -177,28 +177,28 @@ jobs:
needs: [markdownlint, generate-assets, generate-errors, generate-wasm-examples, generate-community]

steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: generated-assets
path: content/assets

- uses: actions/download-artifact@master
- uses: actions/download-artifact@v4
with:
name: generated-errors
path: content/learn/errors

- uses: actions/download-artifact@master
- uses: actions/download-artifact@v4
with:
name: generated-wasm-examples
path: content/examples

- uses: actions/download-artifact@master
- uses: actions/download-artifact@v4
with:
name: generated-wasm-examples-webgpu
path: content/examples-webgpu

- uses: actions/download-artifact@master
- uses: actions/download-artifact@v4
with:
name: generated-community
path: content/community/people
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: Cache multiple crates.io datadump
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: generate-assets/data
key: ${{ runner.os }}-${{ steps.date.outputs.date }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/update-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
steps:

- name: Checkout Bevy latest tag
uses: actions/checkout@master
uses: actions/checkout@v4
with:
repository: 'bevyengine/bevy'
ref: 'latest'

# temporary: fetch tools from main branch
- name: Checkout Bevy Tools
uses: actions/checkout@master
uses: actions/checkout@v4
with:
repository: 'bevyengine/bevy'
ref: 'main'
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
xvfb-run cargo run -p example-showcase -- --page ${{ matrix.page }} --per-page ${{ env.PER_PAGE }} run --screenshot --in-ci
- name: Upload Generated Files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: screenshots-${{ matrix.page }}
path: screenshots
Expand All @@ -71,10 +71,10 @@ jobs:
steps:

- name: Clone bevy-website repo
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Move examples to the correct folder
run: |
Expand All @@ -87,7 +87,7 @@ jobs:
done
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
delete-branch: true
branch-suffix: random
Expand Down

0 comments on commit 22c3414

Please sign in to comment.