-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preventing two actions for same trigger
- Loading branch information
1 parent
d5578a3
commit f04f9b9
Showing
1 changed file
with
1 addition
and
54 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 |
---|---|---|
@@ -1,54 +1 @@ | ||
name: GitHub Actions Demo | ||
run-name: ${{ github.actor }} is testing out GitHub Actions | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
Explore-GitHub-Actions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: echo "The ${{ github.repository }} repository has been cloned to the runner." | ||
|
||
- name: List files in the repository | ||
run: | | ||
ls ${{ github.workspace }} | ||
- run: echo "This job's status is ${{ job.status }}." | ||
- run: mvn clean install | ||
|
||
- name: List files in the repository | ||
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 | ||
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 | ||
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 | ||
blank file |