Skip to content

Commit 98368c1

Browse files
author
Calvinn Ng
committed
update Github Actions build file
1 parent 4461e54 commit 98368c1

File tree

1 file changed

+2
-60
lines changed

1 file changed

+2
-60
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -148,50 +148,7 @@ jobs:
148148
with:
149149
name: ${{ env.target }}
150150
path: "extensions/vscode/*.vsix"
151-
152-
release:
153-
permissions:
154-
contents: write
155-
runs-on: ubuntu-latest
156-
needs:
157-
- build
158-
steps:
159-
- name: Checkout
160-
uses: actions/checkout@v4
161-
162-
- name: Set up Git
163-
run: |
164-
git config --local user.email "[email protected]"
165-
git config --local user.name "GitHub Action"
166-
167-
# Download the .vsix artifacts
168-
- uses: actions/download-artifact@v3
169-
170-
- name: Tag the repository
171-
id: tag
172-
run: |
173-
# See https://docs.github.com/en/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names
174-
TAG=v$(grep -o '"version": "[^"]*' extensions/vscode/package.json | cut -d'"' -f4)-vscode
175-
echo "$TAG"
176-
echo "tag=$TAG" >> $GITHUB_OUTPUT
177-
git tag -a $TAG -m "Published version $TAG" ${GITHUB_SHA}
178-
git push origin $TAG
179-
180-
- name: Release
181-
uses: softprops/action-gh-release@v2
182-
with:
183-
tag_name: ${{ steps.tag.outputs.tag }}
184-
files: |
185-
alpine-x64/*.vsix
186-
darwin-arm64/*.vsix
187-
darwin-x64/*.vsix
188-
linux-arm64/*.vsix
189-
linux-armhf/*.vsix
190-
linux-x64/*.vsix
191-
win32-x64/*.vsix
192-
win32-arm64/*.vsix
193-
token: ${{ secrets.CI_GITHUB_TOKEN }}
194-
repository: continuedev/continue
151+
195152

196153
publish:
197154
runs-on: ubuntu-latest
@@ -223,13 +180,6 @@ jobs:
223180
env:
224181
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
225182

226-
# 3. Publish the extension to Open VSX Registry
227-
- name: Publish (Open VSX Registry)
228-
continue-on-error: true
229-
run: |
230-
cd extensions/vscode
231-
npx ovsx publish -p ${{ secrets.VS_MARKETPLACE_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix
232-
233183
# 4. Update the package.json version and push changes
234184
- name: Update version in package.json
235185
run: |
@@ -246,12 +196,4 @@ jobs:
246196
uses: ad-m/github-push-action@master
247197
with:
248198
github_token: ${{ secrets.GITHUB_TOKEN }}
249-
branch: ${{ github.ref }}
250-
251-
# 5 Send to Discord Webhook
252-
- name: Discord Commits
253-
uses: Sniddl/[email protected]
254-
with:
255-
webhook: ${{ secrets.DISCORD_WEBHOOK }}
256-
template: "avatar-with-link"
257-
include-extras: true
199+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)