diff --git a/.github/workflows/binaries-build.yaml b/.github/workflows/binaries-build.yaml new file mode 100644 index 0000000..f1d52e6 --- /dev/null +++ b/.github/workflows/binaries-build.yaml @@ -0,0 +1,50 @@ +name: Build Executables and Update Release + +on: + workflow_call: + inputs: + release: + required: true + type: string + +jobs: + release-files: + runs-on: ubuntu-latest + steps: + + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build dist image + uses: docker/build-push-action@v2 + with: + context: . + file: Dockerfile-builder + load: true + tags: builder + + - name: Run dist docker + run: | + docker run -v ./dist:/home/node/app/dist builder sh make_dist.sh + + + - name: Upload Files + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ inputs.release }} + files: | + ./dist/dizquetv-win-x64.exe + ./dist/dizquetv-win-x86.exe + ./dist/dizquetv-linux-x64 + ./dist/dizquetv-macos-x64 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/development-binaries.yaml b/.github/workflows/development-binaries.yaml new file mode 100644 index 0000000..1dc2ce5 --- /dev/null +++ b/.github/workflows/development-binaries.yaml @@ -0,0 +1,13 @@ +name: Development Binaries + +on: + push: + branches: + - dev/1.5.x + +jobs: + bianries: + uses: ./.github/workflows/binaries-build.yaml + with: + release: development-binaries + secrets: inherit diff --git a/.github/workflows/tag-binaries.yaml b/.github/workflows/tag-binaries.yaml new file mode 100644 index 0000000..d1139dc --- /dev/null +++ b/.github/workflows/tag-binaries.yaml @@ -0,0 +1,13 @@ +name: Release Binaries + +on: + push: + tag: + - "*" + +jobs: + binaries: + uses: ./.github/workflows/binaries-build.yaml + with: + release: ${{ github.ref_name }} + secrets: inherit