From f6b0efac51bd66050326875a4f31f02de626c899 Mon Sep 17 00:00:00 2001 From: Zach Shames Date: Tue, 2 Jul 2024 10:36:17 -0400 Subject: [PATCH 1/4] github workflow --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..7f0515da --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Build-BlueBubbles-Server + +on: + push: + branches: [ build-test ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macOS-13.0] + + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Use Node.js 20.11 + uses: actions/setup-node@v1 + with: + node-version: '20.11' + - name: Install Dependencies + run: npm install + - name: Build/Publish BlueBubbles + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run release From 6edf84c5f89cf6408cc5721bbcb28b310a67a092 Mon Sep 17 00:00:00 2001 From: Zach Shames Date: Tue, 2 Jul 2024 10:43:47 -0400 Subject: [PATCH 2/4] Fix runner for macos --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f0515da..cc7bbb4e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macOS-13.0] + os: [macOS-13] steps: - uses: actions/checkout@v1 From 108c489c9022cb5ccc763b74ee065c716c0f7ad2 Mon Sep 17 00:00:00 2001 From: Zach Shames Date: Tue, 2 Jul 2024 10:51:58 -0400 Subject: [PATCH 3/4] py dependency for gh workflow --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc7bbb4e..7aad15dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,18 +10,24 @@ jobs: strategy: matrix: os: [macOS-13] + python-version: ["pypy3.10", "3.10"] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 - - name: Use Node.js 20.11 - uses: actions/setup-node@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + run: python -m pip install setuptools + - name: Setup Node.js 20.11 + uses: actions/setup-node@v4 with: node-version: '20.11' - name: Install Dependencies run: npm install - - name: Build/Publish BlueBubbles + - name: Build & Publish BlueBubbles env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run release From 678fac400ee04688208586392e0b33add76b46b8 Mon Sep 17 00:00:00 2001 From: Zach Shames Date: Tue, 2 Jul 2024 10:53:00 -0400 Subject: [PATCH 4/4] fix workflow config --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7aad15dd..290d3270 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,10 +16,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 1 - - name: Set up Python ${{ matrix.python-version }} + - name: Install Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Setup Python ${{ matrix.python-version }} run: python -m pip install setuptools - name: Setup Node.js 20.11 uses: actions/setup-node@v4