Skip to content

Commit

Permalink
[237] test release
Browse files Browse the repository at this point in the history
  • Loading branch information
moklidia committed Jul 19, 2023
1 parent 69e337b commit cd8feb9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,30 @@ jobs:
ruby-version: '3.0.3'
- name: Set env
run: |
export LINUX_BIN_NAME=uffizzi-${{ env.RELEASE_VERSION }}-linux-x86_64
export DARWIN_BIN_NAME=uffizzi-${{ env.RELEASE_VERSION }}-darwin-x86_64
export LINUX_BIN_NAME=uffizzi-${{ env.RELEASE_VERSION }}-linux-x86_64 >> GITHUB_ENV
export DARWIN_BIN_NAME=uffizzi-${{ env.RELEASE_VERSION }}-darwin-x86_64 >> GITHUB_ENV
- name: 'Create Linux Bin'
if: matrix.os == 'ubuntu-20.04'
run: |
wget https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc
chmod +x ./rubyc
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=$LINUX_BIN_NAME
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=${{ env.LINUX_BIN_NAME }}
- name: 'Create Darwin Bin'
if: matrix.os == 'macos-latest'
run: |
wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc
chmod +x ./rubyc
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=$DARWIN_BIN_NAME
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=${{ env.DARWIN_BIN_NAME }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: $LINUX_BIN_NAME
path: $LINUX_BIN_NAME
name: ${{ env.LINUX_BIN_NAME }}
path: ${{ env.LINUX_BIN_NAME }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: $DARWIN_BIN_NAME
path: $DARWIN_BIN_NAME
name: ${{ env.DARWIN_BIN_NAME }}
path: ${{ env.DARWIN_BIN_NAME }}
create_release:
runs-on: ubuntu-latest
needs:
Expand All @@ -70,14 +70,14 @@ jobs:
- name: Download Macos Bin
uses: actions/download-artifact@master
with:
name: $DARWIN_BIN_NAME
name: ${{ env.DARWIN_BIN_NAME }}
- name: Generate release notes
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.RELEASE_VERSION }}
name: ${{ env.RELEASE_VERSION }}
files: |
${{ github.workspace }}/$LINUX_BIN_NAME
${{ github.workspace }}/$DARWIN_BIN_NAME
${{ github.workspace }}/${{ env.LINUX_BIN_NAME }}
${{ github.workspace }}/${{ env.DARWIN_BIN_NAME }}
generate_release_notes: true

0 comments on commit cd8feb9

Please sign in to comment.