File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 11name : Build and Publish TypeID Extension
22
3- permissions :
4- contents : write
53
64on :
75 push :
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 }}
You can’t perform that action at this time.
0 commit comments