Skip to content

Commit

Permalink
Merge pull request #24 from ghostboats/dev
Browse files Browse the repository at this point in the history
testsing new release
  • Loading branch information
ghostboats authored Apr 16, 2024
2 parents 0a80ee9 + 63e67df commit 0158eea
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Workflow
on:
push:
branches:
- prod # Adjust this if your production branch has a different name
- prod

jobs:
build:
Expand All @@ -16,36 +16,37 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Install VSCE
run: npm install -g vsce

- name: Build and package VS Code extension
run: vsce package
id: package_extension

- name: Get version from package.json
id: get_version
run: echo "::set-output name=version::$(jq -r .version package.json)"
shell: bash

- name: Set VSIX filename
id: set_vsix_name
run: echo "::set-output name=vsix_filename::bg3-mod-helper-${{ steps.get_version.outputs.version }}.vsix"
shell: bash

- name: List files in the directory # Verify the .vsix file exists
run: ls -lah
- name: Upload VSIX as artifact
uses: actions/upload-artifact@v2
with:
name: vsix-file
path: ${{ steps.set_vsix_name.outputs.vsix_filename }}

release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Download VSIX artifact
uses: actions/download-artifact@v2
with:
name: vsix-file
path: ./
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -56,13 +57,12 @@ jobs:
release_name: Release v${{ steps.get_version.outputs.version }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ needs.build.outputs.vsix_filename }}
asset_path: ${{ needs.build.outputs.vsix_filename }}
asset_name: ${{ needs.build.outputs.vsix_filename }}
asset_content_type: application/octet-stream

0 comments on commit 0158eea

Please sign in to comment.