Skip to content

Commit

Permalink
Add release workflow for packaging and uploading extension artifacts
Browse files Browse the repository at this point in the history
Remove attestation from CI
  • Loading branch information
tspascoal committed Nov 2, 2024
1 parent a39a905 commit 34fc354
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
issues: read
checks: write
pull-requests: write
id-token: write
attestations: write

steps:
- name: Checkout
Expand Down Expand Up @@ -64,10 +62,6 @@ jobs:
with:
name: extension
path: '*.vsix'
name: Release Extension

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: '*.vsix'
show-summary: true


44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release Extension

on:
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: read
checks: write
id-token: write
attestations: write

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Package
run: vsce package

- name: Generate provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: '*.vsix'
show-summary: true

- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: "*.vsix"

0 comments on commit 34fc354

Please sign in to comment.