Skip to content

Workflow file for this run

name: Attach phars to the release
on:
release:
types: [created]
permissions:
contents: write
jobs:
phar_release:
name: Create phars and upload them
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build all the phars
uses: ./.github/actions/phar
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload linux release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./tools/phar/build/castor.linux-amd64.phar
asset_name: castor.linux-amd64.phar
asset_content_type: application/octet-stream
- name: Upload darwin release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./tools/phar/build/castor.darwin-amd64.phar
asset_name: castor.darwin-amd64.phar
asset_content_type: application/octet-stream
- name: Upload windows release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./tools/phar/build/castor.windows-amd64.phar
asset_name: castor.windows-amd64.phar
asset_content_type: application/octet-stream