From 69af92533f52ec09624c8f93356e828ef33f95fd Mon Sep 17 00:00:00 2001 From: Paulo Trentin Date: Fri, 2 Feb 2024 17:29:00 -0300 Subject: [PATCH] Workflow added --- .github/workflows/dotcom-build-artifact.yml | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/dotcom-build-artifact.yml diff --git a/.github/workflows/dotcom-build-artifact.yml b/.github/workflows/dotcom-build-artifact.yml new file mode 100644 index 0000000..b77d069 --- /dev/null +++ b/.github/workflows/dotcom-build-artifact.yml @@ -0,0 +1,58 @@ +name: Publish Website + +on: + push: + branches: + - trunk + workflow_dispatch: +jobs: + Build-Artifact-Action: + name: Build-Artifact-Action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + submodules: true + ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Install PHP dependencies + uses: php-actions/composer@v6 + with: + dev: no + php_version: 8.1 + + - name: Setup node 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Run yarn install + uses: borales/actions-yarn@v4 + with: + cmd: install + + - name: Run yarn grunt + uses: borales/actions-yarn@v4 + with: + cmd: grunt + + - name: Upload the artifact + uses: actions/upload-artifact@v4 + with: + name: repository-artifact + path: | + . + !.DS_Store + !.git + !.gitattributes + !.github + !.gitignore + !.editorconfig.json + !README.md + !composer.lock + !package-lock.json + !package.json + !travis.yml + !phpcs.xml.dist + !node_modules + !yarn.lock