Skip to content

Commit

Permalink
Update GitHub Actions (#638)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
  • Loading branch information
ggrossetie and renovate-bot authored Mar 12, 2022
1 parent 12383a8 commit 4b5d267
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 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@v2
- uses: actions/checkout@v3
- 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@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# libgbm-dev is required by Puppeteer 3+
Expand All @@ -53,19 +53,19 @@ jobs:
npm run build
if: matrix.primary
- name: Upload Windows artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: win-binary
path: build/asciidoctor-web-pdf-win.zip
if: matrix.primary
- name: Upload macOS artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: mac-binary
path: build/asciidoctor-web-pdf-mac.zip
if: matrix.primary
- name: Upload Linux artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: linux-binary
path: build/asciidoctor-web-pdf-linux.zip
Expand All @@ -74,7 +74,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: linux-binary
- name: Unzip
Expand All @@ -91,7 +91,7 @@ jobs:
needs: build
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: mac-binary
- name: Unzip
Expand All @@ -108,7 +108,7 @@ jobs:
needs: build
runs-on: windows-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
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@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
# libgbm-dev is required by Puppeteer 3+
Expand All @@ -30,8 +30,8 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
# libgbm-dev is required by Puppeteer 3+
Expand All @@ -54,7 +54,7 @@ jobs:
# create the GitHub release
- name: Create release
id: create_release
uses: actions/create-release@v1.0.0
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -64,7 +64,7 @@ jobs:
prerelease: true
# upload assets
- name: Upload macOS binary (zip)
uses: actions/[email protected].1
uses: actions/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -73,7 +73,7 @@ jobs:
asset_name: asciidoctor-web-pdf-mac-${{ env.RELEASE_VERSION }}.zip
asset_content_type: application/zip
- name: Upload Windows binary (zip)
uses: actions/[email protected].1
uses: actions/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -82,7 +82,7 @@ jobs:
asset_name: asciidoctor-web-pdf-win-${{ env.RELEASE_VERSION }}.zip
asset_content_type: application/zip
- name: Upload Linux binary (zip)
uses: actions/[email protected].1
uses: actions/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 4b5d267

Please sign in to comment.