Skip to content

Commit

Permalink
chore: Switch to using new release script
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Mar 1, 2021
1 parent 4dae4cb commit ca51b4d
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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 }}"

0 comments on commit ca51b4d

Please sign in to comment.