Skip to content

Commit 6cada55

Browse files
authored
Upgrade actions (#1420)
* Update actions * Switch runner to ubuntu-latest * Add permissions for pages publishing --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent c778c0e commit 6cada55

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/pages.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@ on:
99

1010
jobs:
1111
deploy:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
1316
steps:
14-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1518

1619
- name: Setup mdBook
17-
uses: peaceiris/actions-mdbook@v1
20+
uses: peaceiris/actions-mdbook@v2
1821
with:
1922
mdbook-version: '0.4.10'
2023

2124
- run: mdbook build docs/
2225

2326
- name: Deploy
24-
uses: peaceiris/actions-gh-pages@v3
27+
uses: peaceiris/actions-gh-pages@v4
2528
with:
2629
github_token: ${{ secrets.GITHUB_TOKEN }}
2730
publish_dir: ./docs/book

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ jobs:
1111
if: ${{ github.event_name == 'release' || (github.event_name == 'pull_request' && github.event.label.name == 'build-release-container') }}
1212
steps:
1313
- name: Setup BuildX
14-
uses: docker/setup-buildx-action@v2
14+
uses: docker/setup-buildx-action@v3
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
- name: Get tags
2020
run: git fetch --tags origin
2121
- name: Generate docker metadata
2222
id: meta
23-
uses: docker/metadata-action@v3
23+
uses: docker/metadata-action@v5
2424
with:
2525
images: |
2626
joshproject/josh-proxy
2727
tags: |
2828
type=ref,event=tag
2929
- name: Login to DockerHub
30-
uses: docker/login-action@v1
30+
uses: docker/login-action@v3
3131
with:
3232
username: initcrash
3333
password: ${{ secrets.DOCKERHUB_TOKEN }}
3434
- name: Build docker image
35-
uses: docker/build-push-action@v2
35+
uses: docker/build-push-action@v6
3636
with:
3737
context: .
3838
file: Dockerfile

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Setup BuildX
18-
uses: docker/setup-buildx-action@v2
18+
uses: docker/setup-buildx-action@v3
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
- name: Get tags
2424
run: git fetch --tags origin
2525
- name: Build dev image
26-
uses: docker/build-push-action@v2
26+
uses: docker/build-push-action@v6
2727
with:
2828
context: .
2929
file: Dockerfile

0 commit comments

Comments
 (0)