|
1 | 1 | name: Test and publish to registries after new tag
|
2 | 2 |
|
3 |
| -# on: |
4 |
| -# push: |
5 |
| -# tags: ["v[0-9].[0-9]+.[0-9]+"] |
6 | 3 | on:
|
7 | 4 | release:
|
8 | 5 | types: [published]
|
9 | 6 |
|
10 | 7 | jobs:
|
11 |
| - logtag: |
12 |
| - name: Tag Name |
13 |
| - # if: startsWith(github.event.ref, 'refs/tags/v') |
14 |
| - if: ${{github.event.release.prerelease == true }} |
15 |
| - runs-on: ubuntu-latest |
16 |
| - env: |
17 |
| - RELEASE_CONTEXT: ${{ toJson(github.event.release) }} |
18 |
| - steps: |
19 |
| - - name: Log Tag Name |
20 |
| - run: | |
21 |
| - echo ${GITHUB_REF##*/} |
22 |
| - echo "event name is:" ${{ github.event_name }} |
23 |
| - echo "event type is:" ${{ github.event.action }} |
24 |
| - echo "event release tag_name is:" ${{ github.event.release.tag_name }} |
25 |
| - echo "event prerelease is:" ${{ github.event.release.prerelease }} |
26 |
| - echo "event asset dl is:" ${{ github.event.release.assets[0].browser_download_url }} |
27 |
| - echo "event asset dl type is:" ${{ github.event.release.assets[0].content_type }} |
28 |
| - echo "$RELEASE_CONTEXT" |
29 |
| -
|
30 | 8 | # init:
|
31 | 9 | # uses: ./.github/workflows/00-init.yml
|
32 | 10 |
|
|
49 | 27 | # uses: ./.github/workflows/01-cypress.yml
|
50 | 28 | # needs: [build]
|
51 | 29 |
|
| 30 | + logtag: |
| 31 | + name: Tag Name |
| 32 | + # needs: [test, cypress] |
| 33 | + # if: startsWith(github.event.ref, 'refs/tags/v') |
| 34 | + if: ${{github.event.release.prerelease == true }} && startsWith(github.ref, 'refs/tags/v') |
| 35 | + runs-on: ubuntu-latest |
| 36 | + env: |
| 37 | + RELEASE_CONTEXT: ${{ toJson(github.event.release) }} |
| 38 | + steps: |
| 39 | + - name: Log Tag Name |
| 40 | + run: | |
| 41 | + echo ${GITHUB_REF##*/} |
| 42 | + echo "event name is:" ${{ github.event_name }} |
| 43 | + echo "event type is:" ${{ github.event.action }} |
| 44 | + echo "event release tag_name is:" ${{ github.event.release.tag_name }} |
| 45 | + echo "event prerelease is:" ${{ github.event.release.prerelease }} |
| 46 | + echo "event asset dl is:" ${{ github.event.release.assets[0].browser_download_url }} |
| 47 | + echo "event asset dl type is:" ${{ github.event.release.assets[0].content_type }} |
| 48 | + echo "$RELEASE_CONTEXT" |
| 49 | +
|
52 | 50 | # publish:
|
53 | 51 | # needs: [test, cypress]
|
54 | 52 | # # if: contains( github.ref, 'test-package-publishing')
|
|
0 commit comments