Sha256: a37fce1d185824c2e20bfbfb3934b2fbe2324c48f1f146917352b0fae8426963

Contents?: true

Size: 1.73 KB

Versions: 10

Compression:

Stored size: 1.73 KB

Contents

name: Create Release

on:
  push:
    tags:
      - 'v*'

jobs:
  create-release:
    runs-on: ubuntu-latest
    steps:
    - name: Extract tag name
      id: tag
      run: echo "::set-output name=value::${GITHUB_REF##*/}"
    - uses: actions/checkout@v2
    
    - name: Set up Ruby
      uses: actions/setup-ruby@v1.1.2
      with:
        ruby-version: 2.6
    
    - name: Install dependencies
      run: bundle install

    - name: Create package
      run: bundle exec rake package

    - name: Get Directory
      id: folder
      run: |
        cd packaging/builds
        echo ::set-output name=name::$(ls)
    
    - name: Get Packages
      id: binaries
      run: |
        cd packaging/builds/${{ steps.folder.outputs.name }}
        deb=$(find . -type f -name '*.deb')
        rpm=$(find . -type f -name "*.rpm")
        echo ::set-output name=deb_file::"${deb:2}"
        echo ::set-output name=rpm_file::"${rpm:2}"

    - uses: dawidd6/action-homebrew-bump-formula@v3
      with:
        token: ${{secrets.BREW_TOKEN}}
        tap: shopify/shopify
        formula: shopify-cli
        tag: ${{ steps.folder.outputs.name }}

    - name: Create Release # https://hub.github.com/hub-release.1.html
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: |
        cd packaging/builds/${{ steps.folder.outputs.name }}
        hub release create ${{ steps.tag.outputs.value }} \
        -a ${{ steps.binaries.outputs.deb_file }} \
        -a ${{ steps.binaries.outputs.rpm_file }} \
        -m "Version ${{ steps.folder.outputs.name }}

        Release of version ${{ steps.folder.outputs.name }} of the Shopify App CLI
        Please refer to [CHANGELOG](https://github.com/Shopify/shopify-app-cli/blob/master/CHANGELOG.md) for details."

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shopify-cli-1.12.0 .github/workflows/release.yml
shopify-cli-1.11.0 .github/workflows/release.yml
shopify-cli-1.10.0 .github/workflows/release.yml
shopify-cli-1.9.1 .github/workflows/release.yml
shopify-cli-1.9.0 .github/workflows/release.yml
shopify-cli-1.8.0 .github/workflows/release.yml
shopify-cli-1.7.1 .github/workflows/release.yml
shopify-cli-1.7.0 .github/workflows/release.yml
shopify-cli-1.6.0 .github/workflows/release.yml
shopify-cli-1.5.0 .github/workflows/release.yml