From ca51b4d33ed1cd52095be50416185be542f36276 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Mon, 1 Mar 2021 13:24:58 +0900 Subject: [PATCH] chore: Switch to using new release script --- .github/workflows/ci.yml | 48 ++-------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17f2f085ea..3bdec9558d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,7 +85,7 @@ jobs: uses: ./.github/actions/read-package-version - name: Create release (experimental new version) - id: create_release_new + id: create_release uses: ./.github/actions/create-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -95,49 +95,5 @@ jobs: prerelease: ${{ steps.read_package_version.outputs.prerelease }} version: ${{ steps.read_package_version.outputs.version }} - - name: Create release - id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: true - prerelease: ${{ steps.read_package_version.outputs.prerelease }} - - - name: Upload Firefox asset - id: upload_firefox_asset - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist-firefox-package/${{ steps.read_package_version.outputs.firefox_package_name }} - asset_name: rikaichamp-${{ steps.read_package_version.outputs.version }}-firefox.zip - asset_content_type: application/zip - - - name: Upload Chrome asset - id: upload_chrome_asset - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist-chrome-package/${{ steps.read_package_version.outputs.chrome_package_name }} - asset_name: rikaichamp-${{ steps.read_package_version.outputs.version }}-chrome.zip - asset_content_type: application/zip - - - name: Upload source ZIP - id: upload_source_asset - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist-src/rikaichamp-${{ steps.read_package_version.outputs.version }}-src.zip - asset_name: rikaichamp-${{ steps.read_package_version.outputs.version }}-src.zip - asset_content_type: application/zip - - name: Show Release URL - run: echo "View and publish the release at ${{ steps.create_release.outputs.html_url }}" + run: echo "View and publish the release at ${{ steps.create_release.outputs.url }}"