diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 633d167..8984756 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -24,7 +24,7 @@ concurrency: ${{ github.ref }} jobs: build: name: Build Puppeteer - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/actionpr.yml b/.github/workflows/actionpr.yml new file mode 100644 index 0000000..3b934ba --- /dev/null +++ b/.github/workflows/actionpr.yml @@ -0,0 +1,32 @@ +name: Build Pull Request +on: + # Trigger the workflow on all pull request, + pull_request: + branches: + - master + workflow_dispatch: + # Also trigger on page_build, as well as release created events + page_build: + release: + types: # This configuration does not affect the page_build event above + - created + +jobs: + build: + name: Build PR + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + id: checkout + with: + lfs: true + - name: build-push + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DEPLOY_DOCKER_USERNAME }} + password: ${{ secrets.DEPLOY_DOCKER_PASSWORD }} + repository: imqs/htmlrender + tag_with_ref: true + build_args: SSH_KEY=${{ secrets.DEPLOYBOT_SSH_KEY }} + cache_froms: node:20