Skip to content

Commit 337d1f2

Browse files
authored
Update manual-publish.yml
1 parent 4b173b3 commit 337d1f2

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/manual-publish.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@ jobs:
2020
runs-on: ubuntu-24.04
2121

2222
steps:
23-
- name: Checkout repository
23+
- name: Checkout the repository
2424
uses: actions/checkout@v4
2525

2626
- name: Setup Java
27+
# see https://github.com/actions/setup-java#supported-distributions
28+
# note that this also deploys ant
2729
uses: actions/setup-java@v4
2830
with:
29-
distribution: adopt
31+
distribution: 'adopt'
3032
java-version: '11'
3133

32-
- name: Install Ant
34+
- name: before_install
3335
run: |
3436
tar -xzvf lib/apache-ant-1.10.6-bin.tar.gz
3537
echo "$(pwd)/apache-ant-1.10.6/bin" >> $GITHUB_PATH
3638
37-
- name: Build site
39+
- name: script
3840
run: |
3941
mkdir -p output
4042
git clone --depth=1 --branch=gh-pages https://github.com/irdpl/wcag.git output
@@ -53,6 +55,14 @@ jobs:
5355
5456
ant deploy
5557
58+
- name: Upload Artifact
59+
if: failure()
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: failed-artifact
63+
path: |
64+
./output
65+
5666
- name: Upload Pages artifact
5767
uses: actions/upload-pages-artifact@v3
5868
with:

0 commit comments

Comments
 (0)