Merge branch 'main' into feature/k12_engine #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: ["*"] | |
| env: | |
| RELEASE_BUILD_DIR: "build" | |
| BUILD_CONFIGURATION: "Release" | |
| jobs: | |
| build-linux: | |
| uses: ./.github/workflows/linux-build.yml | |
| with: | |
| configuration: "Release" | |
| build_dir: "build" | |
| # build-windows: | |
| # uses: ./.github/workflows/windows-build.yml | |
| # with: | |
| # configuration: "Release" | |
| publish-linux: | |
| needs: build-linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Linux build artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: QubicLiteLinuxBuild-${{ env.BUILD_CONFIGURATION }} | |
| path: ${{ env.RELEASE_BUILD_DIR }} | |
| - name: Create release package | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "Mainnet Executable Release ${{ github.ref_name }}" | |
| body: "Mainnet release of Qubic Core Lite executables." | |
| files: ${{ env.RELEASE_BUILD_DIR }}/src/Qubic | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # publish-windows: | |
| # needs: build-windows | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Download Windows build artifact | |
| # uses: actions/download-artifact@v4 | |
| # with: | |
| # name: QubicLiteWindowsBuild-${{ env.BUILD_CONFIGURATION }} | |
| # path: ${{ env.RELEASE_BUILD_DIR }} | |
| # | |
| # - name: Create Windows release package | |
| # uses: softprops/action-gh-release@v2 | |
| # with: | |
| # files: ${{ env.RELEASE_BUILD_DIR }}/**/x64/Release/Qubic.exe | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish-docker: | |
| needs: build-linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Download Linux build artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: QubicLiteLinuxBuild-${{ env.BUILD_CONFIGURATION }} | |
| path: build | |
| - name: Build Docker image | |
| run: docker build -t qubiccore/lite:${{ github.ref_name }} -f docker/orchestrator/Dockerfile . | |
| - name: Log in to Docker Hub | |
| run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin | |
| - name: Push Docker image | |
| run: docker push qubiccore/lite:${{ github.ref_name }} |