Skip to content

Commit

Permalink
ci: introduce release job
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Nov 27, 2023
1 parent e717941 commit 7638816
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18

- run: npm i

- name: Publish to marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: TOKEN_STUB #${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
dryRun: true

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 0.0.1 #${{ github.ref }}
release_name: Release 0.0.1 #Release ${{ github.ref }}
draft: true # false
prerelease: false

- name: Upload extension package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
asset_name: monokle.vsix
asset_content_type: application/octet-stream

0 comments on commit 7638816

Please sign in to comment.