From dbfe1bd0c54d9e3a133ffa82a42667d9616c3725 Mon Sep 17 00:00:00 2001 From: debghs Date: Wed, 24 Jul 2024 01:10:07 +0530 Subject: [PATCH] github actions --- .github/workflows/build.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5596d93..85a7b61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build and Release +name: Build on: push: @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.9' @@ -32,7 +32,25 @@ jobs: mv dist/main build/ - name: Upload to build folder - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: build path: build/ + + release: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Download build artifact + uses: actions/download-artifact@v3 + with: + name: build + path: build/ + + - name: Create GitHub Release + uses: softprops/action-gh-release@v1 + with: + files: build/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}