Skip to content

Commit

Permalink
Add publish and pull request steps for release
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-b committed Oct 15, 2024
1 parent 6302978 commit 5333d81
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ jobs:
- name: Pack extension
run: npx vsce pack

# todo: publish to marketplace
- name: Publish extension to marketplace
run: npx vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Update GitHub release assets
run: gh release upload ${{ env.VERSION_TAG }} *.vsix --clobber
Expand All @@ -81,16 +84,13 @@ jobs:
- name: Patch package.json version
run: npm version patch --git-tag-version false

- name: Print changes
run: git diff

# - name: Commit, push and create pull request
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GeoWerkstatt-Build"
# git checkout -b $GIT_BRANCH_NAME
# git commit -am "$GIT_COMMIT_MESSAGE"
# git push --set-upstream origin $GIT_BRANCH_NAME
# gh pr create --title "$GIT_COMMIT_MESSAGE" --body ""
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit, push and create pull request
run: |
git config --local user.email "[email protected]"
git config --local user.name "GeoWerkstatt-Build"
git checkout -b $GIT_BRANCH_NAME
git commit -am "$GIT_COMMIT_MESSAGE"
git push --set-upstream origin $GIT_BRANCH_NAME
gh pr create --title "$GIT_COMMIT_MESSAGE" --body ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5333d81

Please sign in to comment.