Skip to content

Revert "test"

Revert "test" #54

Workflow file for this run

name: Create Release and Upload ZIP
on:
push:
branches:
- main # You can replace 'main' with the branch you want to trigger the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 16
- name: Create ZIP File
run: |
cd extension
zip -r dist.zip dist
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.B_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: commit-${{ github.sha }}
release_name: Release commit-${{ github.sha }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.B_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./extension/dist.zip
asset_name: dist.zip
asset_content_type: application/zip