Skip to content

Commit

Permalink
Workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
paulopmt1 committed Feb 2, 2024
1 parent 456e6fa commit 69af925
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/dotcom-build-artifact.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 69af925

Please sign in to comment.