|
5 | 5 |
|
6 | 6 | jobs:
|
7 | 7 | build_linux:
|
| 8 | + permissions: |
| 9 | + attestations: write |
| 10 | + id-token: write |
8 | 11 | uses: ./.github/workflows/build-linux.yml
|
9 | 12 | secrets: inherit
|
10 | 13 |
|
11 | 14 | build_macos:
|
| 15 | + permissions: |
| 16 | + attestations: write |
| 17 | + id-token: write |
12 | 18 | uses: ./.github/workflows/build-macos.yml
|
13 | 19 | secrets: inherit
|
14 | 20 |
|
15 | 21 | build_windows:
|
| 22 | + permissions: |
| 23 | + attestations: write |
| 24 | + id-token: write |
16 | 25 | uses: ./.github/workflows/build-windows.yml
|
17 | 26 | secrets: inherit
|
18 | 27 |
|
|
45 | 54 | uses: actions/download-artifact@v4
|
46 | 55 |
|
47 | 56 | - name: Release
|
48 |
| - uses: softprops/action-gh-release@v2 |
49 |
| - with: |
50 |
| - files: | |
51 |
| - build-*/* |
| 57 | + run: gh release upload ${{ github.ref_name }} build-*/* --repo ${{ github.repository }} |
| 58 | + env: |
| 59 | + GH_TOKEN: ${{ github.token }} |
52 | 60 |
|
53 | 61 | deploy_npm:
|
54 | 62 | name: Deploy npm
|
@@ -131,7 +139,7 @@ jobs:
|
131 | 139 | # a real dependency on the released version of Sass.
|
132 | 140 | - name: Get Dart Sass version
|
133 | 141 | id: dart-sass-version
|
134 |
| - run: echo "version=${GITHUB_REF##*/}" | tee --append "$GITHUB_OUTPUT" |
| 142 | + run: echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT" |
135 | 143 | - run: npm install sass@${{ steps.dart-sass-version.outputs.version }}
|
136 | 144 | working-directory: pkg/sass-parser/
|
137 | 145 |
|
@@ -190,7 +198,7 @@ jobs:
|
190 | 198 |
|
191 | 199 | - name: Get version
|
192 | 200 | id: version
|
193 |
| - run: echo "version=${GITHUB_REF##*/}" | tee --append "$GITHUB_OUTPUT" |
| 201 | + run: echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT" |
194 | 202 |
|
195 | 203 | - name: Wait for npm registry's CDN to catch up on replications
|
196 | 204 | run: sleep 600
|
@@ -219,7 +227,7 @@ jobs:
|
219 | 227 | - name: Get version
|
220 | 228 | id: version
|
221 | 229 | run: |
|
222 |
| - echo "version=${GITHUB_REF##*/}" | tee --append "$GITHUB_OUTPUT" |
| 230 | + echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT" |
223 | 231 | echo "protocol_version=$(curl -fsSL -H "Authorization: Bearer ${{ github.token }}" https://raw.githubusercontent.com/sass/sass/HEAD/spec/EMBEDDED_PROTOCOL_VERSION)" | tee --append "$GITHUB_OUTPUT"
|
224 | 232 |
|
225 | 233 | - name: Update version
|
|
0 commit comments