Update README.md #4
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: Build Mac Generator | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Configure MSVC and Build | |
shell: cmd | |
run: | | |
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" | |
cl /EHsc /O2 /DNDEBUG /MD main.cpp /FeMacGenerator.exe /link /MACHINE:X64 | |
- name: List output build directory | |
shell: cmd | |
run: | | |
dir | |
- name: Delete-tag-and-release | |
uses: dev-drprasad/[email protected] | |
with: | |
tag_name: MacGenerator | |
delete_release: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
with: | |
tag_name: MacGenerator | |
release_name: MacGenerator | |
body: "Release created by GitHub Actions" | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset-donut | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: MacGenerator.exe | |
asset_name: MacGenerator.exe | |
asset_content_type: application/zip |