Skip to content

Commit

Permalink
Upgrade deprecated GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Sep 8, 2024
1 parent e45d93b commit 4696232
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- uses: dahlia/actions/setup-yq@main
- name: Cache Stack files (non-Windows)
if: "!startsWith(matrix.os, 'windows-')"
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
Expand All @@ -63,7 +63,7 @@ jobs:
key: stack-${{ matrix.os }}-ghc-${{ matrix.ghc-version }}
- name: Cache Stack files (Windows)
if: "startsWith(matrix.os, 'windows-')"
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
%APPDATA%\cabal\packages
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
ls -al _bin
- name: Compress executable binaries
if: "startsWith(matrix.os, 'ubuntu-')"
uses: crazy-max/ghaction-upx@v1
uses: crazy-max/ghaction-upx@v3
with:
files: _bin/seonbi*
args: "-9"
Expand Down Expand Up @@ -276,15 +276,15 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: true
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3
- if: github.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- if: github.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -304,7 +304,7 @@ jobs:
echo labels= >> "$GITHUB_OUTPUT"
fi
- id: push-image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 4696232

Please sign in to comment.