Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jun 13, 2024
1 parent 3fe542a commit 20ef5c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
outputs:
version: ${{ steps.package_info.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Current version
id: package_info
run: |
VERSION=$(node -e 'console.log(require("./package.json").version)')
echo "::set-output name=version::v$VERSION"
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# libgbm-dev is required by Puppeteer 3+
Expand All @@ -52,9 +52,9 @@ jobs:
# taken from https://github.com/docker/github-actions/blob/0f18e2abad9a4ac2963d2516246787375b5ec917/Dockerfile#L32
run: curl -fL https://download.docker.com/linux/static/stable/x86_64/docker-20.10.4.tgz | tar xzO docker/docker > docker && sudo mv -f docker /usr/bin/docker && sudo chmod +x /usr/bin/docker
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build container image
run: make packageLocalDocker
- name: Smoke test
Expand All @@ -64,19 +64,19 @@ jobs:
npm run build
if: matrix.primary
- name: Upload Windows artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: win-binary
path: build/asciidoctor-web-pdf-win.zip
if: matrix.primary
- name: Upload macOS artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mac-binary
path: build/asciidoctor-web-pdf-mac.zip
if: matrix.primary
- name: Upload Linux artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-binary
path: build/asciidoctor-web-pdf-linux.zip
Expand All @@ -85,7 +85,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: linux-binary
- name: Unzip
Expand All @@ -102,7 +102,7 @@ jobs:
needs: build
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: mac-binary
- name: Unzip
Expand All @@ -119,7 +119,7 @@ jobs:
needs: build
runs-on: windows-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: win-binary
- name: Unzip
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
# libgbm-dev is required by Puppeteer 3+
Expand All @@ -30,8 +30,8 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
# libgbm-dev is required by Puppeteer 3+
Expand Down Expand Up @@ -93,8 +93,8 @@ jobs:
publish_dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3
- uses: actions/checkout@v4.1.7
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Install dependencies
Expand All @@ -104,9 +104,9 @@ jobs:
# taken from https://github.com/docker/github-actions/blob/0f18e2abad9a4ac2963d2516246787375b5ec917/Dockerfile#L32
run: curl -fL https://download.docker.com/linux/static/stable/x86_64/docker-20.10.4.tgz | tar xzO docker/docker > docker && sudo mv -f docker /usr/bin/docker && sudo chmod +x /usr/bin/docker
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
run: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
Expand Down

0 comments on commit 20ef5c5

Please sign in to comment.