-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Verify environment | ||
- name: Verify environment | ||
run: | | ||
echo "Current directory: $(pwd)" | ||
ls -al | ||
node -v | ||
npm -v | ||
# Install dependencies and build | ||
- name: Install dependencies and build | ||
run: | | ||
cd $GITHUB_WORKSPACE # Cambia al directorio raíz del repositorio | ||
npm install | ||
npm run build | ||
ls -R dist | ||
# Upload build file to the release as an asset | ||
- name: Upload build to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist/* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true |