Skip to content

Commit

Permalink
fix: tag open vsx release properly (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode authored Aug 9, 2020
1 parent fdc2d9a commit 486427d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,20 @@ jobs:
npx vsce package -o svn-scm-ovsx.vsix
npx ovsx publish svn-scm-ovsx.vsix -p ${{ secrets.ovsxToken }}
- name: 'Get tag'
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
id: getTag
uses: "WyriHaximus/github-action-get-previous-tag@master"
env:
GITHUB_TOKEN: "${{ secrets.githubToken }}"

- name: Upload Open VSX to release
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.githubToken }}
file: svn-scm-ovsx.vsix
tag: ${{ github.ref }}
tag: ${{ steps.getTag.outputs.tag }}

eslint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 486427d

Please sign in to comment.