Skip to content

Commit

Permalink
CI: Adds release job
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Krebs committed Nov 24, 2024
1 parent caf17d6 commit 937b554
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,19 @@ jobs:
npm install
vsce package
- name: Version
run: |
echo "::set-output name=version::$(cat package.json | jq -r .version)"
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}

- name: upload linux artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./spear-viewer-*.vsix
asset_name: spear-viewer.vsix
asset_content_type: application/zip

release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@master
- name: Create release
uses: Roang-zero1/github-create-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload release artifacts
uses: Roang-zero1/github-upload-release-artifacts-action@v2
with:
args: "dist/bin/ dist/shell/compiled.sh"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 937b554

Please sign in to comment.