|
12 | 12 | name: Build and publish binaries
|
13 | 13 | strategy:
|
14 | 14 | matrix:
|
15 |
| - rust_toolchain: [stable] |
16 | 15 | os: [ubuntu-latest, macOS-latest, windows-latest]
|
17 | 16 | runs-on: ${{ matrix.os }}
|
18 | 17 | if: contains(github.ref, 'vscode-extension') != true
|
|
23 | 22 | - name: Install Rust
|
24 | 23 | run: |
|
25 | 24 | rustup update
|
26 |
| - rustup install ${{ matrix.rust_toolchain }} |
27 | 25 |
|
28 | 26 | - name: Build CLI
|
29 | 27 | if: matrix.os == 'ubuntu-latest'
|
@@ -106,7 +104,7 @@ jobs:
|
106 | 104 | with:
|
107 | 105 | registry: ghcr.io
|
108 | 106 | username: ${{ github.repository_owner }}
|
109 |
| - password: ${{ secrets.GHCRPAT }} |
| 107 | + password: ${{ secrets.GITHUB_TOKEN }} |
110 | 108 |
|
111 | 109 | - name: Build and push image
|
112 | 110 | uses: docker/build-push-action@v2
|
@@ -150,10 +148,8 @@ jobs:
|
150 | 148 | sed -i -e 's/"name": "@anweiss\/cddl"/"name": "@anweiss\/cddl-languageserver"/g' cddl-languageserver/package.json
|
151 | 149 |
|
152 | 150 | - name: Publish to GPR
|
153 |
| - env: |
154 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
155 | 151 | run: |
|
156 |
| - echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc |
| 152 | + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc |
157 | 153 | cp .npmrc pkg/
|
158 | 154 | cp .npmrc cddl-languageserver/
|
159 | 155 | cd pkg
|
@@ -219,8 +215,6 @@ jobs:
|
219 | 215 | steps:
|
220 | 216 | - name: Checkout source
|
221 | 217 | uses: actions/checkout@v2
|
222 |
| - with: |
223 |
| - persist-credentials: false |
224 | 218 |
|
225 | 219 | - name: Install Rust
|
226 | 220 | run: |
|
|
0 commit comments