Skip to content

Commit

Permalink
test release wf
Browse files Browse the repository at this point in the history
  • Loading branch information
matteomorlack committed Aug 3, 2024
1 parent ab29e2d commit 4956e8a
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,37 @@ jobs:
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Package
- run: |
git status -s
if: success() && matrix.os == 'ubuntu-latest'
run: |
npm run package ${RELEASE_TYPE}
echo "packageFile=$(ls *.vsix)" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ inputs.releaseType }}
- name: Publish
if: success() && matrix.os == 'ubuntu-latest'
run: |
npm run publish -i ${VSIX_PATH}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSIX_PATH: ${{ env.packageFile }}
- name: Push tag
if: success() && matrix.os == 'ubuntu-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git push --tags
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
if: success() && matrix.os == 'ubuntu-latest'
with:
files: |
${{ env.packageFile }}
# - name: Package
# if: success() && matrix.os == 'ubuntu-latest'
# run: |
# npm run package ${RELEASE_TYPE}
# echo "packageFile=$(ls *.vsix)" >> $GITHUB_ENV
# env:
# RELEASE_TYPE: ${{ inputs.releaseType }}
# - name: Publish
# if: success() && matrix.os == 'ubuntu-latest'
# run: |
# npm run publish -i ${VSIX_PATH}
# env:
# VSCE_PAT: ${{ secrets.VSCE_PAT }}
# VSIX_PATH: ${{ env.packageFile }}
# - name: Push tag
# if: success() && matrix.os == 'ubuntu-latest'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# git config user.name "GitHub Actions"
# git config user.email "[email protected]"
# git push --tags
# - name: Release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# uses: softprops/action-gh-release@v2
# if: success() && matrix.os == 'ubuntu-latest'
# with:
# files: |
# ${{ env.packageFile }}

0 comments on commit 4956e8a

Please sign in to comment.