diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..35ae55e --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,31 @@ +name: 'Build Razor' +on: + release: + types: [published] + +jobs: + build: + name: 'Build Razor' + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ['windows-latest'] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: 3.11.3 + + # Windows Build + - name: 'Build' + if: matrix.os == 'windows-latest' + run: | + cd scripts && + ./build.bat + + - name: 'Upload Build' + if: matrix.os == 'windows-latest' + uses: softprops/action-gh-release@v0.1.15 + with: + files: dist/Razor.exe diff --git a/.gitignore b/.gitignore index 4d96259..3cfe3aa 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ ffmpeg/ VLC/ dll/ ffmpeg.zip +temp/ # macOS .DS_Store