-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
108 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Build] | ||
types: [completed] | ||
push: | ||
tags: v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
jobs: | ||
release: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
fetch-depth: 0 | ||
lfs: false | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.workflow_run.head_branch }} | ||
release_name: ${{ github.event.workflow_run.head_branch }} | ||
body_path: RELEASE.md | ||
draft: false | ||
prerelease: false | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: build | ||
merge-multiple: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
run-id: ${{ github.event.workflow_run.run_id }} | ||
- run: ls -la * | ||
- run: ls -la build/* | ||
- run: ls -la build/StandaloneOSX/* | ||
- name: Upload Windows release assets | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: micromissiles-${{ github.event.workflow_run.head_branch }}-windows_x86_64.zip | ||
asset_path: build/build-StandaloneWindows64.zip | ||
asset_content_type: application/zip | ||
- name: Upload Darwin release assets | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: micromissiles-${{ github.event.workflow_run.head_branch }}-darwin.tar.gz | ||
asset_path: build/build-StandaloneOSX.tar.gz | ||
asset_content_type: application/gzip |
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# micromissiles-unity | ||
|
||
## Build ${{ github.event.workflow_run.head_branch }} | ||
|
||
## Instructions | ||
|
||
Download and extract the archive corresponding to your platform (Windows or Mac) from the binaries listed below. | ||
|
||
## Windows | ||
|
||
1. Download the zip file for Windows: `micromissiles-${{ github.event.workflow_run.head_branch }}-windows_x86_64.zip`. | ||
2. Unzip the zip file. The zip file should contain a single directory called `micromissiles-${{ github.event.workflow_run.head_branch }}-windows_x86_64`. | ||
3. Run `micromissiles-<version>-StandaloneWindows64.exe`. | ||
|
||
## Mac | ||
|
||
1. Download the zip file for Darwin: `micromissiles-${{ github.event.workflow_run.head_branch }}-darwin.zip`. | ||
2. Unzip the zip file. The zip file should contain a single app file. | ||
3. Change the permission of the app file recursively by running: | ||
```bash | ||
chmod -R +x micromissiles-<version>-StandaloneOSX.app | ||
``` | ||
4. Open the app file. | ||
5. If you get a warning that Apple cannot check the application for malicious software: | ||
* Open `System Preferences`. | ||
* Navigate to `Privacy & Security`. | ||
* Click on `Open Anyway` to bypass Apple's developer check. |