Skip to content

Commit 1306869

Browse files
authored
ci: upload layer zip to github actions artifact (#2)
* ci: upload layer zip to github actions artifact * fix: remove setup node cache * ci: upload `mupdf-layer.zip` to GitHub releases
1 parent 89034cd commit 1306869

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ env:
1616
MUPDF_VERSION: 1.24.10
1717

1818
jobs:
19-
test:
19+
build:
2020
runs-on: ubuntu-latest
2121
container: amazonlinux:2023
2222
steps:
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
2327
- name: Install the necessary tools
2428
run: |
2529
yum update -y
@@ -46,6 +50,12 @@ jobs:
4650
zip -r9 ../mupdf-layer.zip .
4751
cd ..
4852
53+
- name: Upload the layer to GitHub Actions Artifacts
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: mupdf-layer
57+
path: mupdf-layer.zip
58+
4959
- name: Login to AWS
5060
if: github.event_name == 'release'
5161
run: |
@@ -65,3 +75,9 @@ jobs:
6575
--layer-name mupdf \
6676
--content S3Bucket=${{ secrets.S3_BUCKET }},S3Key=mupdf-layer.zip \
6777
--description "MuPDF CLI tools v${{ env.MUPDF_VERSION }}"
78+
79+
- name: Upload to GitHub Releases
80+
uses: svenstaro/upload-release-action@v2
81+
if: github.event_name == 'release'
82+
with:
83+
file: mupdf-layer.zip

0 commit comments

Comments
 (0)