Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-arash authored Aug 23, 2024
1 parent 86951d1 commit 0c891e7
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build:

runs-on: windows-latest

steps:
Expand All @@ -25,9 +24,23 @@ jobs:
run: |
g++ -o extreme_math.exe main.cpp
- name: Upload build artifact
uses: actions/upload-artifact@v3
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: Release ${{ env.version }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
name: extreme-math-windows
path: |
extreme_math.exe
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./extreme_math.exe
asset_name: extreme_math.exe
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0c891e7

Please sign in to comment.