1.0.18 #16
Workflow file for this run
This file contains 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: Release | |
permissions: | |
id-token: write | |
contents: write | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Build | |
env: | |
VERSION: ${{ github.event.release.tag_name }} | |
run: make | |
- name: Upload to GitHub release assets | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
UPLOAD_URL: ${{ github.event.release.upload_url }} | |
VERSION: ${{ github.event.release.tag_name }} | |
run: | | |
set +e | |
for variant in firefox chrome; do | |
name="mergify-${variant}-${VERSION}.zip" | |
curl -L \ | |
--fail \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer $GITHUB_TOKEN" \ | |
-H "Content-Type: application/octet-stream" \ | |
--data-binary "@${name}" \ | |
"${UPLOAD_URL%%/assets*}/assets?name=${name}" | |
if [ $? = 22 ]; then | |
echo "Upload of $name failed" | |
exit 22 | |
fi | |
done | |
set -e |