This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git
The following commit(s) were added to refs/heads/master by this push:
new 517b496 workflow on publishing a release
517b496 is described below
commit 517b49666414e04c3d84280361f5e4f54bcbfd8a
Author: nandarshan <[email protected]>
AuthorDate: Fri Feb 16 14:48:04 2024 -0500
workflow on publishing a release
---
.github/workflows/release_on_tag_push.yml | 40 ++++++++++---------------------
1 file changed, 13 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/release_on_tag_push.yml
b/.github/workflows/release_on_tag_push.yml
index 3227938..cd984b5 100644
--- a/.github/workflows/release_on_tag_push.yml
+++ b/.github/workflows/release_on_tag_push.yml
@@ -1,9 +1,8 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions
on:
- push:
- tags:
- - '*'
+ release:
+ types: [published]
jobs:
Explore-GitHub-Actions:
@@ -13,6 +12,10 @@ jobs:
uses: actions/checkout@v4
- run: echo "The ${{ github.repository }} repository has been cloned to
the runner."
+ - name: Print the tag name
+ run: |
+ echo ${{ github.ref }}
+
- name: List files in the repository
run: |
ls ${{ github.workspace }}
@@ -24,31 +27,14 @@ jobs:
run: |
ls ${{ github.workspace }}
- - name: Create Release to get an id
- id: create_release_id
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- tag_name: ${{ github.ref }}
- release_name: ${{ github.ref }}
-
- - name: Upload Zip File 1
- uses: actions/upload-release-asset@v1
+ - name: Upload file 1
+ run: |
+ gh release upload ${{github.event.release.tag_name}}
agent/service/target/MFT-Agent-0.01-bin.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release_id.outputs.upload_url }}
- asset_path: agent/service/target/MFT-Agent-0.01-bin.zip
- asset_name: MFT-Agent-0.01-bin.zip
- asset_content_type: application/zip
- - name: Upload Zip File 2
- uses: actions/upload-release-asset@v1
+ - name: Upload file 2
+ run: |
+ gh release upload ${{github.event.release.tag_name}}
standalone-service/target/Standalone-Service-0.01-bin.zip
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release_id.outputs.upload_url }}
- asset_path: standalone-service/target/Standalone-Service-0.01-bin.zip
- asset_name: Standalone-Service-0.01-bin.zip
- asset_content_type: application/zip
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file