Skip to content

Commit

Permalink
ci: upload layer zip to github actions artifact (#2)
Browse files Browse the repository at this point in the history
* ci: upload layer zip to github actions artifact

* fix: remove setup node cache

* ci: upload `mupdf-layer.zip` to GitHub releases
  • Loading branch information
rwv authored Oct 29, 2024
1 parent 89034cd commit 1306869
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ env:
MUPDF_VERSION: 1.24.10

jobs:
test:
build:
runs-on: ubuntu-latest
container: amazonlinux:2023
steps:
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install the necessary tools
run: |
yum update -y
Expand All @@ -46,6 +50,12 @@ jobs:
zip -r9 ../mupdf-layer.zip .
cd ..
- name: Upload the layer to GitHub Actions Artifacts
uses: actions/upload-artifact@v4
with:
name: mupdf-layer
path: mupdf-layer.zip

- name: Login to AWS
if: github.event_name == 'release'
run: |
Expand All @@ -65,3 +75,9 @@ jobs:
--layer-name mupdf \
--content S3Bucket=${{ secrets.S3_BUCKET }},S3Key=mupdf-layer.zip \
--description "MuPDF CLI tools v${{ env.MUPDF_VERSION }}"
- name: Upload to GitHub Releases
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
with:
file: mupdf-layer.zip

0 comments on commit 1306869

Please sign in to comment.