Skip to content

Commit 7a073f5

Browse files
authored
Create autopublicar.yml
1 parent 9d34b41 commit 7a073f5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/autopublicar.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Run a one-line script
18+
run: echo Hello, world!
19+
20+
- name: Run a multi-line script
21+
run: |
22+
echo Add other actions to build,
23+
echo test, and deploy your project.
24+
25+
- name: Get commit hash
26+
id: commit_hash
27+
run: echo "::set-output name=hash::$(git rev-parse --short HEAD)"
28+
29+
- name: Compress files into a zip archive
30+
run: zip -r SOMEDATACOMPATS_${{ steps.commit_hash.outputs.hash }}.zip .
31+
32+
- name: Publish zip file
33+
run: |
34+
# Aquí puedes agregar los comandos o acciones para publicar el archivo zip
35+
echo "Publishing SOMEDATACOMPATS_${{ steps.commit_hash.outputs.hash }}.zip"

0 commit comments

Comments
 (0)