|
1 | 1 | name: Release |
2 | 2 | on: workflow_dispatch |
3 | 3 | jobs: |
4 | | - # release: |
5 | | - # runs-on: ubuntu-latest |
6 | | - # permissions: |
7 | | - # contents: write |
8 | | - # issues: write |
9 | | - # env: |
10 | | - # CI: "true" |
11 | | - # steps: |
12 | | - # - name: Checkout |
13 | | - # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
14 | | - # with: |
15 | | - # fetch-depth: 0 |
16 | | - # - name: Set git config safe.directory |
17 | | - # run: git config --global --add safe.directory "$(pwd)" |
18 | | - # - name: Set git identity |
19 | | - # run: |- |
20 | | - # git config user.name "github-actions" |
21 | | - # git config user.email "[email protected]" |
22 | | - # - name: Setup Node.js |
23 | | - # uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a |
24 | | - # with: |
25 | | - # node-version: 18.x |
26 | | - # - name: Install dependencies |
27 | | - # run: yarn install --check-files --frozen-lockfile |
28 | | - # - name: release |
29 | | - # run: npx projen release |
30 | | - # - name: Backup artifact permissions |
31 | | - # run: cd dist && getfacl -R . > permissions-backup.acl |
32 | | - # continue-on-error: true |
33 | | - # - name: Upload artifact |
34 | | - # uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 |
35 | | - # with: |
36 | | - # name: build-artifact |
37 | | - # path: dist |
38 | | - # overwrite: true |
| 4 | + release: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + permissions: |
| 7 | + contents: write |
| 8 | + issues: write |
| 9 | + env: |
| 10 | + CI: "true" |
| 11 | + steps: |
| 12 | + - name: Checkout |
| 13 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
| 14 | + with: |
| 15 | + fetch-depth: 0 |
| 16 | + - name: Set git config safe.directory |
| 17 | + run: git config --global --add safe.directory "$(pwd)" |
| 18 | + - name: Set git identity |
| 19 | + run: |- |
| 20 | + git config user.name "github-actions" |
| 21 | + git config user.email "[email protected]" |
| 22 | + - name: Setup Node.js |
| 23 | + uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a |
| 24 | + with: |
| 25 | + node-version: 18.x |
| 26 | + - name: Install dependencies |
| 27 | + run: yarn install --check-files --frozen-lockfile |
| 28 | + - name: release |
| 29 | + run: npx projen release |
| 30 | + - name: Backup artifact permissions |
| 31 | + run: cd dist && getfacl -R . > permissions-backup.acl |
| 32 | + continue-on-error: true |
| 33 | + - name: Upload artifact |
| 34 | + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 |
| 35 | + with: |
| 36 | + name: build-artifact |
| 37 | + path: dist |
| 38 | + overwrite: true |
39 | 39 | # release_npm: |
40 | 40 | # name: Publish to npm |
41 | 41 | # needs: release |
@@ -184,7 +184,7 @@ jobs: |
184 | 184 | # body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} |
185 | 185 | release_nuget: |
186 | 186 | name: Publish to NuGet Gallery |
187 | | - # needs: release |
| 187 | + needs: release |
188 | 188 | runs-on: ubuntu-latest |
189 | 189 | permissions: |
190 | 190 | contents: read |
|
0 commit comments