From 5c98fd3682386955a9821e8c094ed95d631e2289 Mon Sep 17 00:00:00 2001 From: Lucas Lovato Date: Wed, 7 Aug 2024 08:50:38 -0300 Subject: [PATCH] feat: add pali pre-release (#606) --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..4ece13728 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Release + +on: + push: + branches: + - pre-release + - master + - develop + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: yarn install + + - name: Build project for Chrome + run: yarn run build:chrome + + - name: Create a draft release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.sha }} + release_name: Release ${{ github.sha }} for ${{ github.ref }} + draft: true + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload zip to release + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./build/chrome.zip + asset_name: chrome.zip + asset_content_type: application/zip