Skip to content

Commit 8e3a788

Browse files
committed
fix: try fixing permissions for CI publish
1 parent a3b8833 commit 8e3a788

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Build and Publish TypeID Extension
22

3-
permissions:
4-
contents: write
53

64
on:
75
push:
@@ -72,8 +70,13 @@ jobs:
7270
fi
7371
cargo pgrx package --features pg${{ matrix.pg_version }} --pg-config $PG_CONFIG_PATH
7472
75-
- name: Set lowercase OS name
76-
run: echo "LOWERCASE_OS=$(echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
73+
- name: Format OS name for release
74+
run: |
75+
LOWERCASE_OS=$(echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]')
76+
if [ "$LOWERCASE_OS" = "macos" ]; then
77+
LOWERCASE_OS="darwin"
78+
fi
79+
echo "LOWERCASE_OS=$LOWERCASE_OS" >> $GITHUB_ENV
7780
7881
- name: Package Extension
7982
run: |
@@ -87,18 +90,21 @@ jobs:
8790

8891
build-and-push-docker:
8992
needs: build-and-publish
93+
permissions:
94+
packages: write
95+
id-token: write
9096
runs-on: ubuntu-latest
9197
steps:
92-
- uses: actions/checkout@v3
98+
- uses: actions/checkout@v4
9399

94100
- name: Set up QEMU
95-
uses: docker/setup-qemu-action@v2
101+
uses: docker/setup-qemu-action@v3
96102

97103
- name: Set up Docker Buildx
98-
uses: docker/setup-buildx-action@v2
104+
uses: docker/setup-buildx-action@v3
99105

100106
- name: Login to GHCR
101-
uses: docker/login-action@v2
107+
uses: docker/login-action@v3
102108
with:
103109
registry: ghcr.io
104110
username: ${{ github.actor }}

0 commit comments

Comments
 (0)