Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ on:
jobs:
build:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ubuntu-latest
outputs:
name: ${{ steps.set-version.outputs.name }}
version: ${{ steps.set-version.outputs.version }}
Expand All @@ -32,7 +29,7 @@ jobs:
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Find which branch the release tag points at
id: find-branch
if: github.event_name == 'release' && runner.os == 'Windows'
if: github.event_name == 'release'
shell: bash
run: |
git fetch --depth=1 origin +refs/heads/*:refs/heads/*
Expand All @@ -41,7 +38,6 @@ jobs:
echo "taggedbranch=$TAGGEDBRANCH" >> $GITHUB_OUTPUT
- name: Set an output
id: set-version
if: runner.os == 'Windows'
shell: bash
run: |
set -x
Expand Down Expand Up @@ -72,17 +68,16 @@ jobs:
with:
run: npm run test
- name: Build package
if: runner.os == 'Windows'
run: |
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/[email protected]
if: (runner.os == 'Windows') && (github.event_name != 'release')
if: github.event_name != 'release'
with:
name: ${{ steps.set-version.outputs.name }}.vsix
path: ${{ steps.set-version.outputs.name }}.vsix
beta:
if: (github.event_name == 'push')
runs-on: windows-latest
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/[email protected]
Expand All @@ -100,7 +95,7 @@ jobs:
publish:
needs: build
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'master'
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ on:
jobs:
build:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ubuntu-latest
outputs:
name: ${{ steps.set-version.outputs.name }}
version: ${{ steps.set-version.outputs.version }}
Expand All @@ -32,7 +29,7 @@ jobs:
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Find which branch the release tag points at
id: find-branch
if: github.event_name == 'release' && runner.os == 'Windows'
if: github.event_name == 'release'
shell: bash
run: |
git fetch --depth=1 origin +refs/heads/*:refs/heads/*
Expand All @@ -41,7 +38,6 @@ jobs:
echo "taggedbranch=$TAGGEDBRANCH" >> $GITHUB_OUTPUT
- name: Set an output
id: set-version
if: runner.os == 'Windows'
shell: bash
run: |
set -x
Expand Down Expand Up @@ -72,17 +68,16 @@ jobs:
with:
run: npm run test
- name: Build pre-release package
if: runner.os == 'Windows'
run: |
npx vsce package --pre-release -o ${{ steps.set-version.outputs.name }}.vsix --githubBranch prerelease
- uses: actions/[email protected]
if: (runner.os == 'Windows') && (github.event_name != 'release')
if: github.event_name != 'release'
with:
name: ${{ steps.set-version.outputs.name }}.vsix
path: ${{ steps.set-version.outputs.name }}.vsix
beta:
if: (github.event_name == 'push')
runs-on: windows-latest
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/[email protected]
Expand All @@ -102,7 +97,7 @@ jobs:
publish:
needs: build
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'prerelease'
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand Down