Skip to content

Commit cd051d3

Browse files
authored
Update pages action to avoid deprecation issues (#143)
The current pages actions produce a lot of deprecation warnings from github. This should fix that. `actions-rs` is also archived and unmaintained. The configuration here is simple enough to just throw in the commands directly so it's probably a good idea to do that.
1 parent eabcffa commit cd051d3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/pages.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
build-github-pages:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2 # repo checkout
22-
- uses: actions-rs/toolchain@v1 # get rust toolchain for wasm
23-
with:
24-
profile: minimal
25-
toolchain: stable
26-
target: wasm32-unknown-unknown
27-
override: true
21+
- uses: actions/checkout@v4 # repo checkout
22+
- name: Setup toolchain for wasm
23+
run: |
24+
rustup update stable
25+
rustup default stable
26+
rustup set profile minimal
27+
rustup target add wasm32-unknown-unknown
2828
- name: Rust Cache # cache the rust build artefacts
29-
uses: Swatinem/rust-cache@v1
29+
uses: Swatinem/rust-cache@v2
3030
- name: Download and install Trunk binary
3131
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
3232
- name: Build # build

0 commit comments

Comments
 (0)