Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Create buildonpush.yml
Browse files Browse the repository at this point in the history
Pipeline para build en un Push para cualquier rama
  • Loading branch information
emacuello authored Sep 16, 2024
1 parent 243587f commit f35db82
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/buildonpush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push: null

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: '**/package-lock.json'

- name: Install dependencies
run: npm ci --no-audit --no-fund

- name: Build
run: npm run build

- name: Create issue if build fails
if: failure()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
ACTION_TYPE: 'Build'
URL_ACTION_RUN: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
BRANCH: ${{ github.ref }}
with:
assignees: ${{ github.event.sender.login }}

1 comment on commit f35db82

@emacuello
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for adoptree ready!

✅ Preview
https://adoptree-bw5b03b6p-emanuels-projects-e0d75c1b.vercel.app

Built with commit f35db82.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.