Build release binary to be used for other actions #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build release binary to be used for other actions | |
on: [ workflow_dispatch ] | |
jobs: | |
trigger-tester: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install tools" | |
run: sudo apt-get install -y libgdbm-dev libmbedtls-dev | |
- name: "Build" | |
# run: | | |
# curl -f -o get-gauche.sh https://raw.githubusercontent.com/shirok/get-gauche/master/get-gauche.sh | |
# chmod +x get-gauche.sh | |
# ./get-gauche.sh --prefix /usr --destdir package --version latest --force | |
# (cd package; tar czvf ../gauche-binary-ubuntu-latest.tar.gz .) | |
run: echo "placeholder" > gauche-binary-ubuntu-latest.tar.gz | |
# - name: "Get upload url" | |
# run: | | |
# upload_url=$(curl -sL https://api.github.com/repos/actions/checkout/releases/latest | jq -r '.upload_url') | |
# echo UPLOAD_URL=$upload_url >> $GITHUB_ENV | |
# - uses: shogo82148/actions-upload-release-asset@v1 | |
# with: | |
# asset_path: gauche-binary-ubuntu-latest.tar.gz | |
# overwrite: true | |
# upload_url: ${{ env.UPLOAD_URL }} | |
- name: "Upload" | |
run: gh release upload v1 gauche-binary-ubuntu-latest.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ github.TOKEN }} |