Skip to content

Merge pull request #15 from leon-w/fix-webpack-splitting #14

Merge pull request #15 from leon-w/fix-webpack-splitting

Merge pull request #15 from leon-w/fix-webpack-splitting #14

Workflow file for this run

name: Release
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Get short SHA
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build
run: |
npm ci
npm run build
mv dist panopto-dl
zip -r panopto-dl.zip panopto-dl
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release/${{ steps.vars.outputs.sha_short }}
release_name: Release ${{ steps.vars.outputs.sha_short }}
draft: false
prerelease: false
- name: Upload Release Asset
id: 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: ./panopto-dl.zip
asset_name: panopto-dl-${{ steps.vars.outputs.sha_short }}.zip
asset_content_type: application/zip