Skip to content

Commit ab1dc62

Browse files
committed
Upgrades GitHub Workflows
Multiple are outdated and can't run anymore.
1 parent cd7a7fc commit ab1dc62

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
ruby-version: [2.5, 2.6, 2.7, 3.0]
15+
ruby-version: [3.1, 3.2, 3.3]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Set up Ruby
20-
uses: ruby/setup-ruby@v1
20+
uses: ruby/setup-ruby@v1.170.0
2121
with:
2222
ruby-version: ${{ matrix.ruby-version }}
2323

24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v4
2525
with:
2626
path: vendor/bundle
2727
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
env:
11-
ruby-version: 2.5
11+
ruby-version: 3.2
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Ruby
16-
uses: ruby/setup-ruby@v1
16+
uses: ruby/setup-ruby@v1.170.0
1717
with:
1818
ruby-version: ${{ env.ruby-version }}
1919

20-
- uses: actions/cache@v2
20+
- uses: actions/cache@v4
2121
with:
2222
path: vendor/bundle
2323
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
@@ -34,7 +34,7 @@ jobs:
3434
- run: bundle exec middleman build
3535

3636
- name: Deploy
37-
uses: peaceiris/actions-gh-pages@v3
37+
uses: peaceiris/actions-gh-pages@v4
3838
with:
3939
github_token: ${{ secrets.GITHUB_TOKEN }}
4040
publish_dir: ./build

.github/workflows/dev_deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
env:
11-
ruby-version: 2.5
11+
ruby-version: 3.2
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Ruby
16-
uses: ruby/setup-ruby@v1
16+
uses: ruby/setup-ruby@v1.170.0
1717
with:
1818
ruby-version: ${{ env.ruby-version }}
1919

20-
- uses: actions/cache@v2
20+
- uses: actions/cache@v4
2121
with:
2222
path: vendor/bundle
2323
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
@@ -34,15 +34,15 @@ jobs:
3434
- run: bundle exec middleman build
3535

3636
- name: Push to Docker Hub
37-
uses: docker/build-push-action@v1
37+
uses: docker/build-push-action@v6
3838
with:
3939
username: ${{ secrets.DOCKER_USERNAME }}
4040
password: ${{ secrets.DOCKER_ACCESS_KEY }}
4141
repository: slatedocs/slate
4242
tag_with_ref: true
4343

4444
- name: Deploy
45-
uses: peaceiris/actions-gh-pages@v3.7.0-8
45+
uses: peaceiris/actions-gh-pages@v4
4646
with:
4747
github_token: ${{ secrets.GITHUB_TOKEN }}
4848
destination_dir: dev

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out the repo
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: Push to Docker Hub
16-
uses: docker/build-push-action@v1
16+
uses: docker/build-push-action@v6
1717
with:
1818
username: ${{ secrets.DOCKER_USERNAME }}
1919
password: ${{ secrets.DOCKER_ACCESS_KEY }}

0 commit comments

Comments
 (0)