Skip to content

Commit 5a6b20b

Browse files
ci: use actions/upload-artifact v4
1 parent ecf7748 commit 5a6b20b

65 files changed

Lines changed: 556 additions & 481 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pr-preview-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
mkdir -p ./pr
3131
echo ${{ github.event.number }} > ./pr/NR
3232
33-
- uses: actions/upload-artifact@v3
33+
- uses: actions/upload-artifact@v4
3434
with:
3535
name: dist
3636
path: dist/
37-
- uses: actions/upload-artifact@v3
37+
- uses: actions/upload-artifact@v4
3838
with:
3939
name: pr
4040
path: pr/

src/app/about.rs

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@ pub fn about() -> Html {
1212
product_name="PatternFly Yew Quickstart"
1313
trademark="Copyright © 2020, 2023 PatternFly for Yew contributors"
1414
>
15-
<p>{ env!("CARGO_PKG_DESCRIPTION") }</p>
16-
<br />
17-
<DescriptionList mode={[DescriptionListMode::Horizontal]}>
18-
<DescriptionGroup term="Version">{env!("CARGO_PKG_VERSION")}</DescriptionGroup>
19-
<DescriptionGroup term="Name">{env!("CARGO_PKG_VERSION")}</DescriptionGroup>
20-
<DescriptionGroup term="License">{env!("CARGO_PKG_LICENSE")}</DescriptionGroup>
21-
if let Some(value) = option_env!("BUILD_COMMIT") {
22-
<DescriptionGroup term="Build commit">{value}</DescriptionGroup>
23-
}
24-
if let Some(value) = option_env!("BUILD_TIMESTAMP") {
25-
<DescriptionGroup term="Build timestamp">{value}</DescriptionGroup>
26-
}
27-
</DescriptionList>
15+
<p>{ env!("CARGO_PKG_DESCRIPTION") }</p>
16+
<br />
17+
<DescriptionList mode={[DescriptionListMode::Horizontal]}>
18+
<DescriptionGroup term="Version">
19+
{ env!("CARGO_PKG_VERSION") }
20+
</DescriptionGroup>
21+
<DescriptionGroup term="Name">{ env!("CARGO_PKG_VERSION") }</DescriptionGroup>
22+
<DescriptionGroup term="License">
23+
{ env!("CARGO_PKG_LICENSE") }
24+
</DescriptionGroup>
25+
if let Some(value) = option_env!("BUILD_COMMIT") {
26+
<DescriptionGroup term="Build commit">{ value }</DescriptionGroup>
27+
}
28+
if let Some(value) = option_env!("BUILD_TIMESTAMP") {
29+
<DescriptionGroup term="Build timestamp">{ value }</DescriptionGroup>
30+
}
31+
</DescriptionList>
2832
</AboutModal>
2933
</Bullseye>
3034
)

src/app/mod.rs

Lines changed: 320 additions & 141 deletions
Large diffs are not rendered by default.

src/components/accordion/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ pub fn accordion() -> Html {
1010

1111
html! {
1212
<>
13-
<ExamplePage title="Accordion">
14-
{example1}
15-
{example2}
16-
{example3}
17-
</ExamplePage>
13+
<ExamplePage title="Accordion">{ example1 }{ example2 }{ example3 }</ExamplePage>
1814
</>
1915
}
2016
}

src/components/alert/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ pub fn alert() -> Html {
99

1010
html! {
1111
<>
12-
<ExamplePage title="Alerts">
13-
{example1}
14-
{example2}
15-
</ExamplePage>
12+
<ExamplePage title="Alerts">{ example1 }{ example2 }</ExamplePage>
1613
</>
1714
}
1815
}

src/components/avatar/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ pub fn avatar() -> Html {
1010

1111
html! {
1212
<>
13-
<ExamplePage title="Avatar">
14-
{example1}
15-
{example2}
16-
{example3}
17-
</ExamplePage>
13+
<ExamplePage title="Avatar">{ example1 }{ example2 }{ example3 }</ExamplePage>
1814
</>
1915
}
2016
}

src/components/backdrop/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ pub fn backdrop() -> Html {
1010

1111
html! {
1212
<>
13-
<ExamplePage title="Backdrop">
14-
{example1}
15-
</ExamplePage>
13+
<ExamplePage title="Backdrop">{ example1 }</ExamplePage>
1614
</>
1715
}
1816
}

src/components/badge/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ pub fn badge_example() -> Html {
99

1010
html! {
1111
<>
12-
<ExamplePage title="Badge">
13-
{example1}
14-
{example2}
15-
</ExamplePage>
12+
<ExamplePage title="Badge">{ example1 }{ example2 }</ExamplePage>
1613
</>
1714
}
1815
}

src/components/brand/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ pub fn brand() -> Html {
88

99
html! {
1010
<>
11-
<ExamplePage title="Brand">
12-
{example1}
13-
</ExamplePage>
11+
<ExamplePage title="Brand">{ example1 }</ExamplePage>
1412
</>
1513
}
1614
}

src/components/breadcrumb/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ pub fn breadcrumb() -> Html {
99

1010
html! {
1111
<>
12-
<ExamplePage title="Breadcrumb">
13-
{example1}
14-
{example2}
15-
</ExamplePage>
12+
<ExamplePage title="Breadcrumb">{ example1 }{ example2 }</ExamplePage>
1613
</>
1714
}
1815
}

0 commit comments

Comments
 (0)