Skip to content

Commit

Permalink
test download link on publush
Browse files Browse the repository at this point in the history
  • Loading branch information
aolsenjazz committed May 2, 2023
1 parent 604e95f commit 219d99b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/create-download-links.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: 'Create download links'

on:
push:
branches:
- main
release:
types:
- published
workflow_dispatch:

jobs:
release:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
BEGIN_TAG: '<!-- DOWNLOAD SILICON -->'
END_TAG: '<!-- END DOWNLOAD SILICON -->'
run: |
UPDATE=$(cat README.md | perl -0777 -pe 's#(${{ env.BEGIN_TAG }})(?:.|\n)*?(${{ env.END_TAG }})#${1}\n<a href="https://github.com/${{ env.GITHUB_USER }}/${{ env.REPO }}/releases/download/${{ env.VERSION }}/Mimic-${{ env.VERSION_NUM }}.${{ env.FORMAT }}">Download (Apple Intel) :)</a>\n${2}#g')
UPDATE=$(cat README.md | perl -0777 -pe 's#(${{ env.BEGIN_TAG }})(?:.|\n)*?(${{ env.END_TAG }})#${1}\n<a href="https://github.com/${{ env.GITHUB_USER }}/${{ env.REPO }}/releases/download/${{ env.VERSION }}/Mimic-${{ env.VERSION_NUM }}.${{ env.FORMAT }}">Download (Apple Intel)</a>\n${2}#g')
echo "${UPDATE}" > README.md
- name: Create Intel download link
Expand All @@ -48,7 +49,7 @@ jobs:
BEGIN_TAG: '<!-- DOWNLOAD INTEL -->'
END_TAG: '<!-- END DOWNLOAD INTEL -->'
run: |
UPDATE=$(cat README.md | perl -0777 -pe 's#(${{ env.BEGIN_TAG }})(?:.|\n)*?(${{ env.END_TAG }})#${1}\n<a href="https://github.com/${{ env.GITHUB_USER }}/${{ env.REPO }}/releases/download/${{ env.VERSION }}/Mimic-${{ env.VERSION_NUM }}-arm64.${{ env.FORMAT }}">Download (Apple Silicon) :)</a>\n${2}#g')
UPDATE=$(cat README.md | perl -0777 -pe 's#(${{ env.BEGIN_TAG }})(?:.|\n)*?(${{ env.END_TAG }})#${1}\n<a href="https://github.com/${{ env.GITHUB_USER }}/${{ env.REPO }}/releases/download/${{ env.VERSION }}/Mimic-${{ env.VERSION_NUM }}-arm64.${{ env.FORMAT }}">Download (Apple Silicon)</a>\n${2}#g')
echo "${UPDATE}" > README.md
- uses: EndBug/add-and-commit@v7
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mimic",
"productName": "Mimic",
"version": "1.0.1",
"version": "1.0.2",
"description": "MIDI device emulator for software + DAW testing",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 219d99b

Please sign in to comment.