|
19 | 19 | jobs: |
20 | 20 | build: |
21 | 21 | timeout-minutes: 10 |
22 | | - runs-on: ${{ matrix.os }} |
23 | | - strategy: |
24 | | - matrix: |
25 | | - os: [ubuntu-latest, windows-latest, macOS-latest] |
| 22 | + runs-on: ubuntu-latest |
26 | 23 | outputs: |
27 | 24 | name: ${{ steps.set-version.outputs.name }} |
28 | 25 | version: ${{ steps.set-version.outputs.version }} |
|
32 | 29 | - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
33 | 30 | - name: Find which branch the release tag points at |
34 | 31 | id: find-branch |
35 | | - if: github.event_name == 'release' && runner.os == 'Windows' |
| 32 | + if: github.event_name == 'release' |
36 | 33 | shell: bash |
37 | 34 | run: | |
38 | 35 | git fetch --depth=1 origin +refs/heads/*:refs/heads/* |
|
41 | 38 | echo "taggedbranch=$TAGGEDBRANCH" >> $GITHUB_OUTPUT |
42 | 39 | - name: Set an output |
43 | 40 | id: set-version |
44 | | - if: runner.os == 'Windows' |
45 | 41 | shell: bash |
46 | 42 | run: | |
47 | 43 | set -x |
@@ -72,17 +68,16 @@ jobs: |
72 | 68 | with: |
73 | 69 | run: npm run test |
74 | 70 | - name: Build pre-release package |
75 | | - if: runner.os == 'Windows' |
76 | 71 | run: | |
77 | 72 | npx vsce package --pre-release -o ${{ steps.set-version.outputs.name }}.vsix --githubBranch prerelease |
78 | 73 | |
79 | | - if: (runner.os == 'Windows') && (github.event_name != 'release') |
| 74 | + if: github.event_name != 'release' |
80 | 75 | with: |
81 | 76 | name: ${{ steps.set-version.outputs.name }}.vsix |
82 | 77 | path: ${{ steps.set-version.outputs.name }}.vsix |
83 | 78 | beta: |
84 | 79 | if: (github.event_name == 'push') |
85 | | - runs-on: windows-latest |
| 80 | + runs-on: ubuntu-latest |
86 | 81 | needs: build |
87 | 82 | steps: |
88 | 83 | |
|
102 | 97 | publish: |
103 | 98 | needs: build |
104 | 99 | if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'prerelease' |
105 | | - runs-on: windows-latest |
| 100 | + runs-on: ubuntu-latest |
106 | 101 | steps: |
107 | 102 | - uses: actions/checkout@v3 |
108 | 103 | with: |
|
0 commit comments