-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
name: make-github-release-assets.yaml | ||
|
||
on: | ||
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
on: [push] | ||
|
||
# on: | ||
# push: | ||
# tags: | ||
# - "[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
build: | ||
name: Publish binaries | ||
runs-on: ubuntu-latest | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- run: pwd | ||
- name: Did a file get created (before) | ||
run: ls -la | ||
- run: echo "Test file" > /tmp/bob.txt | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: /tmp/bob.txt | ||
asset_name: bob2.txt | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "This is my release text" | ||
- name: install create-dmg | ||
run: brew install create-dmg | ||
- name: Make a .dmg file | ||
run: create-dmg --volname "Application Installer" --volicon "application_icon.icns" --background "installer_background.png" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "Application.app" 200 190 --hide-extension "Application.app" --app-drop-link 600 185 "Application-Installer.dmg" "tmp/" | ||
- name: Did a file get created (after) | ||
run: ls -la | ||
|
||
# - name: Upload binaries to release | ||
# uses: svenstaro/upload-release-action@v2 | ||
# with: | ||
# repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
# file: /tmp/bob.txt | ||
# asset_name: bob2.txt | ||
# tag: ${{ github.ref }} | ||
# overwrite: true | ||
# body: "This is my release text" |