Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
debghs committed Jul 23, 2024
1 parent a9b9706 commit dbfe1bd
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Release
name: Build

on:
push:
Expand All @@ -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'

Expand All @@ -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 }}

0 comments on commit dbfe1bd

Please sign in to comment.