Merge pull request #17 from Rvn0xsy/dependabot/pip/requests-2.31.0 #35
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 is a basic workflow to help you get started with Actions | |
name: Build-Cooolis-On-Windows-2019 | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- 'v*' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
BuildCooolis: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Enable Developer Command Prompt | |
uses: ilammy/[email protected] | |
- name: Compile x86 Program | |
working-directory: ./Cooolis-ms-Loader/Cooolis-ms | |
run: msbuild /p:configuration=release /p:platform=x86 Cooolis-ms.vcxproj | |
- name: Compile x64 Program | |
working-directory: ./Cooolis-ms-Loader/Cooolis-ms | |
run: msbuild /p:configuration=release /p:platform=x64 Cooolis-ms.vcxproj | |
- name: pack x86 zip | |
working-directory: ./Cooolis-ms-Loader/Cooolis-ms | |
shell: powershell | |
run: Compress-Archive -Path "Release\Cooolis-ms.exe" -DestinationPath "C:\Cooolis-msX86.zip" | |
- name: pack x64 zip | |
working-directory: ./Cooolis-ms-Loader/Cooolis-ms | |
shell: powershell | |
run: Compress-Archive -Path "x64\Release\Cooolis-ms.exe" -DestinationPath "C:\Cooolis-msX64.zip" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Cooolis-ms Release ${{ github.ref }} | |
body: | | |
Automated Release by GitHub Action CI | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset (x64) | |
id: upload-release-asset-x64 | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: C:\Cooolis-msX64.zip | |
asset_name: Cooolis-msX64.zip | |
asset_content_type: application/zip | |
- name: Upload Release Asset (x86) | |
id: upload-release-asset-x86 | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: C:\Cooolis-msX86.zip | |
asset_name: Cooolis-msX86.zip | |
asset_content_type: application/zip |